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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jayraj ChhayaPosted Feb 20, 2024, 12:45 PM
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.