amazon-ec2-auto-scaling-group-examples icon indicating copy to clipboard operation
amazon-ec2-auto-scaling-group-examples copied to clipboard

Create Implementing a Custom Termination Policy in AWS ASG to Terminate the Oldest Instance

Open xzaws opened this issue 10 months ago • 0 comments

This article explores customizing AWS Auto Scaling Group (ASG) termination policies to consistently terminate the oldest instance, addressing limitations in default ASG settings where instance distribution across Availability Zones can override age-based termination logic. It presents a solution integrating a Lambda function with CloudFormation for streamlined deployment and operational efficiency, ensuring predictable and manageable scaling activities.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

xzaws avatar Apr 17 '24 00:04 xzaws