Open Bryson14 opened 7 months ago
Hey,👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂
On the Amplify Studio, it should UPDATE_FAILED
for my GraphQL api
API: cloudFormation User: arn:aws:sts::XXX:assumed-role/us-east-1_WjM1TuhLB_Full-access/amplifyadmin is not authorized to perform: cloudformation:RollbackStack on resource: arn:aws:cloudformation:us-east-1:XXX:stack/amplify-tmtamplifyapp-main-183644-apitmtamplifyapp-1OB0VC3EYWXXH/44e74640-c1f1-11ed-b081-0aaebdb172df because no identity-based policy allows the cloudformation:RollbackStack action
and then for the main stack, It saying ROLLBACK_FAILED
The following resource(s) failed to update: [apitmtamplifyapp, apinotificationapi].
This is getting ridiculous. i've been trying to fix this, but this is my production environment.
I attempted to manually refresh the stack because I thought that the IAM role with amplify doesn't have enough permisions. That did allow me to run amplify push
again, but then push
failed after about 30 minutes.
Looking in the cloud formation templates, the core issue is that the template is trying to setup the /email
route on the API gateway, but that doesn't exist anymore in the code. i've ran amplify remove function
and amplify remove api
to get rid of both the function and the api route from the code, but I cannot run amplify push
successfully to remove this faulty stack. What can I do?
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v20.10.0
Amplify CLI Version
12.10.1
What operating system are you using?
ubuntu
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no manual changes
Describe the bug
I made the following changes in my dev environment:
Everything deployed (with amplify push) and published (with continuous cicd) fine on dev. I then merged to main and tried to run
amplify push
but got the following errors:Expected behavior
i expected the push to take a while since it was making GSI's but then it failed.
I ran
amplify push --iterative-rollback
to try to revert this error but it resulted in the same console output.Here is the output of the stacks
This is the detected root cause for the root stack for the app:
Reproduction steps
Unsure how to replicate.
Project Identifier
be829bf2e298a56012f84ebe8815edf2
Log output
Additional information
No response
Before submitting, please confirm: