Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is already a Construct with name 'transformer-user-pool' in TransformerRootStack [transformer-root-stack] #13502

Closed
2 tasks done
Martin-HHH opened this issue Dec 22, 2023 · 4 comments
Labels
pending-triage Issue is pending triage platform-push Issues related to `amplify push`

Comments

@Martin-HHH
Copy link

How did you install the Amplify CLI?

npm

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

20.10.0

Amplify CLI Version

12.9.0

What operating system are you using?

Windows

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

No, only amplify push other times.

Describe the bug

[MyPath] amplify push
√ Successfully pulled backend environment staging from the cloud.

Current Environment: staging

[Removed the table intentionally]

√ Are you sure you want to continue? (Y/n) · yes
Cognito UserPool configuration
Use a Cognito user pool configured as a part of this project.
� There is already a Construct with name 'transformer-user-pool' in TransformerRootStack [transformer-root-stack]

Resolution: Please report this issue at https://github.com/aws-amplify/amplify-cli/issues and include the project identifier from: 'amplify diagnose --send-report'
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/

Session Identifier: 8acd5ab2-3f84-40e4-ab43-5c636038ab54

Expected behavior

I have not been able to produce the Cognito user for my requests to the API. I changed from API Key to Cognito but I was somehow not successful. The Cognito user pool is not created on Dev environment, though it is on testing and Prod.

Reproduction steps

  1. Just typed "amplify update api", chose GraphQL, authorization, then chose Cognito and nothing else happened.
  2. Then I tried amplify push and the error above happened.

Project Identifier

Project Identifier: 78090b52931979e32bf982114e250585

Log output

I cannot find the route specified, sorry.

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.
@Martin-HHH Martin-HHH added the pending-triage Issue is pending triage label Dec 22, 2023
@ykethan
Copy link
Member

ykethan commented Dec 22, 2023

Hey @Martin-HHH, thank you for reaching out. Tried reproducing the issue but did not observe this behavior.
Does the project have any auth overrides?
Could you try running amplify pull (should discard the previous changes), update the api authorization and run push?
was the auth resource added after running a amplify env checkout from a different environment such as testing or Prod?
was this auth resource recently migrated from an older version of CLI? for example, the update auth prompted to migrate the resource

@ykethan ykethan added pending-response Issue is pending response from the issue author platform-push Issues related to `amplify push` labels Dec 22, 2023
@Martin-HHH
Copy link
Author

Martin-HHH commented Dec 23, 2023 via email

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Dec 23, 2023
@ykethan
Copy link
Member

ykethan commented Dec 27, 2023

Hey @Martin-HHH, thank you for the information, glad to hear that you were able to mitigate the issue. Tried reproducing the issue but did not observe this behavior but making a note of this behaviour for future references. I will close the issue for now, do reach out to us if the behavior reoccurs, we would be happy in reopening this.

@ykethan ykethan closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2023
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-triage Issue is pending triage platform-push Issues related to `amplify push`
Projects
None yet
Development

No branches or pull requests

2 participants