QuestionQ67

VerifiedConfiguration Management and IaC

An online company makes extensive use of Amazon EC2 Auto Scaling to deliver an excellent customer experience while minimizing the number of EC2 instances that are running. The company’s self-hosted Puppet environment in the application layer manages instance configuration. The IT manager wants the lowest licensing costs and must ensure that, whenever the EC2 Auto Scaling group scales in, removed EC2 instances are deregistered from the Puppet master as quickly as possible.

How can this requirement be met?

Explanation

AWS CodeDeploy can integrate with an EC2 Auto Scaling group to perform launch deployments for newly added instances and optional termination deployments during scale-in. A termination deployment runs before the instance is terminated and produces lifecycle events, including ApplicationStop, which can run a deregistration script. Preinstalling the CodeDeploy agent in the base AMI ensures the agent is ready for the Auto Scaling-driven deployment lifecycle.

Learn more

Community Discussion

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