Skip to content

Adding additional sign-up/sign-in redirect URIs using amplify update auth removes env vars from unrelated PreSignUp lambda function #13590

@floriankrueper

Description

@floriankrueper

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

v21.6.1

Amplify CLI Version

12.10.1

What operating system are you using?

MacOS 14.2.1 (23C71)

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

Configured WAF rules and logging for Appsync

Describe the bug

Adding additional sign-up / sign in URI removes env vars from unrelated PreSignUp function

Expected behavior

Only update the sign-in / sign-out URIs
Do not make updates to unrelated functions

Reproduction steps

  1. Setup an environment that uses Auth configured with Google and a custom PreSignup function
  2. Configure a custom env var for PreSignup function
  3. Use amplify update auth to add two additional sign-in/sign-out URIs.
  4. amplify status shows changes to Auth module as expected but also to Function module for the xxxPreSignUp function which is unexpected.
  5. Investigation shows that custom env var for xxxPreSignUp has been removed from:
  • amplify/backend/function/xxxPreSignup/xxxPreSignup-cloudformation-template.json
  • amplify/backend/function/xxxPreSignup/function-parameters.json
  • amplify/backend/backend-config.json

Project Identifier

682e0d66e3a50d4839b5c4d402d6addf

Log output

Details
# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues tied to the auth category of the CLIbugSomething isn't workingfunctionsIssues tied to the functions categoryp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions