QuestionQ81

VerifiedSDLC Automation

A company uses AWS to deploy an application. The development team must automate its deployments. The team created an AWS CodePipeline pipeline that deploys the application to Amazon EC2 instances with AWS CodeDeploy after AWS CodeBuild builds it.

The team wants to add automated testing to the pipeline to verify that the application is healthy before deploying the code to the EC2 instances. The team also requires a manual approval action before the application is deployed, even when the tests succeed. The testing and approval must be implemented at the lowest cost and with the simplest management solution.

Which solution meets these requirements?

Explanation

AWS CodePipeline supports CodeBuild as a managed Test action, so tests can run immediately after the build and prevent later stages from proceeding when they fail. A subsequent Manual approval action pauses execution until an authorized user approves it; Amazon SNS can notify the team that approval is required. Placing CodeDeploy after those actions ensures deployment occurs only after successful tests and manual approval.

Learn more

Community Discussion

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