Skill 3.3.7
Implement automatic or manual rollback by using AWS services (for example, CloudFormation, CodeDeploy).
Key Concepts
CodeDeploy can roll back automatically when a deployment fails or when CloudWatch alarms you associate with the deployment group go into alarm; it does this by redeploying the last known good revision. For Lambda and ECS, rollback shifts traffic back to the original version. Blue/green deployments roll back almost instantly because the old environment is still running.
Other rollbacks include pointing a Lambda alias back at the previous version, swapping Elastic Beanstalk environment URLs back, redeploying an earlier API Gateway deployment to a stage, and CloudFormation's automatic rollback of failed stack updates. AppConfig rolls back configuration when an alarm fires.