QuestionQ6

SDLC Automation

A company wants to use AWS development tools to replace its existing bash deployment scripts. It currently deploys a LAMP application to a group of Amazon EC2 instances behind an Application Load Balancer (ALB). During deployments, the company:

  • Unit tests the committed application
  • Stops and starts services
  • Unregisters and re-registers instances with the load balancer
  • Updates file permissions

The company wants to preserve the same deployment functionality while shifting to AWS services.

Which solution meets these requirements?

Explanation

AWS CodePipeline can orchestrate a CodeBuild test stage and a CodeDeploy deployment stage. CodeBuild runs unit tests. For EC2 deployments, CodeDeploy AppSpec lifecycle hooks can invoke bash scripts to restart services, while a deployment group configured with the ALB removes instances from traffic during deployment and restores them afterward. The AppSpec permissions section can set file ownership and modes without a custom script.

Learn more

Community Discussion

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