QuestionQ68

VerifiedContinuous Improvement for Existing Solutions

A company uses AWS CodePipeline for the CI/CD of an application that is deployed to an Amazon EC2 Auto Scaling group. All AWS resources are defined in AWS CloudFormation templates. The application artifacts are stored in an Amazon S3 bucket and are deployed to the Auto Scaling group through instance user-data scripts. As the application has grown more complex, recent resource changes to the CloudFormation templates have resulted in unplanned downtime.

How can a solutions architect improve the CI/CD pipeline to reduce the chance that template changes will cause downtime?

Explanation

AWS CloudFormation change sets let teams preview the resource changes, including potentially disruptive replacements, before executing a stack update. Automated CodeBuild tests validate the change in a test environment. For Amazon EC2 deployments, CodeDeploy blue/green deployments provision a replacement environment, deploy and verify the new revision, and shift load-balancer traffic only after it is ready, enabling rollback when validation or deployment fails. This minimizes exposure of production traffic to failed application or infrastructure changes.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!