QuestionQ74

VerifiedIncident and Event Response

A software-as-a-service (SaaS) company uses AWS Elastic Beanstalk to deploy its primary .NET application. The Elastic Beanstalk environment is configured to use Amazon EC2 Auto Scaling and Elastic Load Balancing (ELB) for its underlying Amazon EC2 instances.

The company is experiencing incidents where EC2 instances are marked unhealthy and terminated by Auto Scaling groups following a failed ELB health check. The company's DevOps team must create a solution that notifies the operations team whenever an Auto Scaling group terminates EC2 instances for any existing client environments.

What should the DevOps team do to fulfill this requirement?

Explanation

Amazon EC2 Auto Scaling can publish Amazon SNS notifications for instance lifecycle events. The autoscaling:EC2_INSTANCE_TERMINATE event is emitted for a successful instance termination, and email endpoints subscribed to the SNS topic receive the notification, including information about the terminated instance and the reason for termination.

Learn more

Community Discussion

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