QuestionQ84

VerifiedContinuous Improvement for Existing Solutions

A company is using AWS CloudFormation as its deployment tool for all applications. It stages all application binaries and templates within Amazon S3 buckets with versioning enabled. Developers have access to an Amazon EC2 instance that hosts the integrated development environment (IDE). The developers download the application binaries from Amazon S3 to the EC2 instance, make changes, and upload the binaries to an S3 bucket after running the unit tests locally. The developers want to improve the existing deployment mechanism and implement CI/CD using AWS CodePipeline.

The developers have the following requirements:

• Use AWS CodeCommit for source control.

• Automate unit testing and security scanning.

• Alert the developers when unit tests fail.

• Turn application features on and off, and customize deployment dynamically as part of CI/CD.

• Have the lead developer provide approval before deploying an application.

Which solution will meet these requirements?

Explanation

AWS CodeBuild is the native service for running unit tests and security scans within CodePipeline. EventBridge rules trigger SNS notifications when tests fail. AWS CDK constructs with a manifest file provide flexible feature toggle control. Manual approval stages allow the lead developer to gate deployments. This is the complete AWS native solution. Lambda is unsuitable for test execution; Jenkins requires external infrastructure management; CodeDeploy is for deployment, not testing.

Learn more

Community Discussion

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