How to do rollback functionality in aws code deployment
If build is failed how to do previous build is automatically rollback in AWS cloud
How to do rollback functionality in aws code deployment
If build is failed how to do previous build is automatically rollback in AWS cloud
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jayraj ChhayaRank #304 · 8.2K reputationPosted Feb 20, 2024, 7:45 AM EST
In AWS CodeDeploy, you can set up automatic rollback functionality by utilizing deployment configurations. By defining a deployment configuration that specifies the conditions for rollback, you can ensure that if a deployment fails, CodeDeploy will automatically initiate a rollback to the last known good state.
To achieve this, you need to create a custom deployment configuration or modify an existing one to include rollback conditions. You can configure rollback triggers based on criteria such as deployment status, alarms, or CloudWatch events. By setting up these triggers, CodeDeploy will monitor the deployment process and trigger a rollback if the specified conditions are met.
Additionally, you can use AWS CloudFormation templates to automate the creation and management of your deployment configurations, making it easier to maintain consistency across deployments and ensure reliable rollback mechanisms.