-
Notifications
You must be signed in to change notification settings - Fork 820
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
Issues cloning a new environment #13642
Comments
I should also mention when I try and use |
This explanation here seems to roughly match what I'm doing
But as our project is a bit more complicated it seems something somewhere is going wrong 🤔 I tried cloning a new repo and doing |
Hey @pr0g, could you run |
Hi @ykethan, thank you very much for getting back to me. Sure thing, I've just run The override file does add several custom attributes. It looks like this:
There are also quite a lot of config options in |
Is there any other info I could provide that could be helpful @ykethan? I can try and send the config with some identifying info removed, was the diagnosis output any help? Thanks! |
Hey @pr0g, thank you for the information tried to reproduce the issue using the following steps, but did not observe this error message.
Could you check the project auth stack events on the AWS CloudFormation, do you observe any notable event messages? |
Huge thanks for the update @ykethan, I'll give that a try tomorrow (I'm UTC+0 sorry) but this is really helpful info, I'll try and get the Cloudwatch logs shared before then if I can. Thanks! 🙂 |
Hi @ykethan, I had a look in CloudFormation at the Events log for my new stack that is failing to deploy. The first failure I see is:
Then
And then all the rollbacks/deletes happen. Perhaps I could send you the template from CloudFormation for this stack? Would that be helpful? Is there a way to look into what internally failed inside Cognito trying to create the UserPoolClientWeb and UserPoolClient? Thanks again for your help! |
Please let me know if there's anything else I can do to help investigate and resolve this issue @ykethan, this is something we'd really love to get resolved soon if we can. Thanks! |
@pr0g tried reproducing the issue but did not observe this error message. Do you observe any other error messages on the auth stack on the AWS cloudforamtion console? |
Thank you very much for following-up @ykethan.
I don't think so, though I could be looking in the wrong place. Where exactly can I find the auth stack from the AWS CloudFormation console sorry?
I haven't tried this yet but that's a good idea, I'll see if that makes any difference first thing on Monday.
That's fantastic thank you, do you think it might be worth me creating a case via the AWS Support service to help with this too? Thanks again for your help, much appreciated! |
Hi @ykethan, I just wanted to check with the updates to Right now the values in
Shall I just delete these or keep them but set them to be empty lists? (I'll try and see what happens 😅). We also have authProviders including Facebook, Google and Apple, I wonder if they might also be causing problems? I could try and share the whole Thanks again for your help, I'll give this a try now, if you have any other suggestions or have heard back from the Amplify (or Cognito 😝) team that would be great! 🙂 |
Hi @ykethan, I came across this issue (#10647) and @josefaidt suggested zipping-up and sharing the |
I had a breakthrough and it seems deleting all the So in
I think I do need to add these back again now everthing is stood up 😅 I need to dig into exactly how to do this but I think using I wonder if we can document this somewhere as it's a tricky one but I'm glad to (hopefully 🤞) have things working. I'm going to test I can get everything running the same as our existing environments, I'll leave an update here if everything seems to be working as expected and can then close this issue (maybe with an action item to update the docs, maybe this page?) Thanks! |
|
Thanks @ykethan, I was just thining it might be worth documenting having custom attributes in Thanks again for your help 👍 |
Amplify CLI Version
12.10.1
Question
I am attempting to create a new backend environment to use as a personal developer stack from one of our existing internal backend environments. This is to allow individual developers to have their own personal stacks when iterating on features without stomping on other developer's work.
The steps I have followed are:
amplify pull --appId <app-id> --envName <existing-env>
# (environment to start from)amplify add env <new-env-name>
# (new environment)amplify push
# (push new environment to cloud)I'm currently hitting an issue with Cognito though where I get this error:
Which then fails stack creation. I believe we do have some overrides in
amplify/backend/auth/<app>/override.ts
which might be contributing to the problem?I've also tried to see if it's possible to remove
auth
, and add it back manually after (after coming across this issue: #12821) but when I try and do that I get an error that another AWS resource relies on it (an S3 bucket), and when I try and remove that I get this error:But it doesn't tell my what resource that is...
I might be going about this the wrong way, but ideally all I want is a way to create a new backend environment from an existing one as simply as possible. If there is any guidance on how to do this or to get around the problems I am seeing I'd be incredibly grateful to know!
Thank you very much for your help in advance!
The text was updated successfully, but these errors were encountered: