- Newest
- Most votes
- Most comments
I understand you're facing a challenging situation with your AWS Amplify deployment being stuck and unable to rollback or continue. This is indeed a complex issue, especially when it involves nested stacks and multiple AWS services. Here are some steps you can try to roll back to the point before you started updating:
-
First, attempt to use AWS CodeDeploy's manual rollback feature. Even though Amplify uses CloudFormation under the hood, it may have created CodeDeploy deployments. You can try to create a new deployment using a previously successful application revision. This might help restore your application to a known working state.
-
If the CodeDeploy approach doesn't work, you'll need to focus on the CloudFormation stacks. Since you mentioned nested stacks, start by identifying the root stack for your Amplify application.
-
In the CloudFormation console, select the root stack and choose "Update stack". Instead of providing a new template, select "Use current template".
-
In the stack options, look for "Rollback configuration". Here, you can specify a monitoring time and alarms that will trigger an automatic rollback if they enter the ALARM state during stack creation or update.
-
If this doesn't work, you may need to contact AWS Support for further assistance. They have tools and permissions to help unstick complex CloudFormation scenarios.
-
As a last resort, if you have a backup of your application and database from before the update, you might consider recreating the entire Amplify environment from scratch and restoring your data.
Remember, rolling back can have unexpected consequences, especially if database schemas or other critical components have changed. Always ensure you have recent backups before attempting any major operations.
For future deployments, consider setting up automatic rollbacks in your Amplify configuration. This can help prevent situations where deployments get stuck in an unrecoverable state.
If none of these steps work, you may need to engage with AWS support directly, as they have additional tools and permissions to help resolve complex CloudFormation and Amplify issues.
Sources
Redeploy and roll back a deployment with CodeDeploy - AWS CodeDeploy
RollbackInfo - AWS CodeDeploy
AWS Amplify | Extensible Web & Mobile Apps | Amazon Web Services
answered 2 years ago
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 4 years ago
