Deploy Version With Rollback
A 4-step recipe with Amazon Elastic Beanstalk. We can help you get access.
Recipe · 4 steps
Deploy Version With Rollback
Deploy a version and roll back to the prior version if the rollout fails.
- Describe the environment to record its currently deployed version so it can be restored if the new deployment fails.
- Deploy the new application version to the environment.
- Describe the environment and branch on its status — loop back while it is still Updating, end when it returns to Ready, and roll back on a terminal Terminated status.
- Redeploy the previously recorded version to roll the environment back to a known-good state after a failed deployment.
What you'll need to have ready
- environmentName: The name of the environment to deploy to.
- versionLabel: The new application version label to deploy.
For your developer
Arazzo workflow amazon-elastic-beanstalk:deploy-version-with-rollback, 4 operations: describeEnvironments → updateEnvironment → describeEnvironments → updateEnvironment. Specs on APIs.io.