capabilities.work

Protect Instances From Scale In

A 3-step recipe with Amazon EC2 Auto Scaling. We can help you get access.

Recipe · 3 steps

Protect Instances From Scale In

with Amazon EC2 Auto Scaling · Capacity & Performance Management

Set scale-in protection on instances in a group and verify the group.

  1. Describe the Auto Scaling instances to capture details about the first instance and its group association.
  2. Set scale-in protection for the supplied instances in the group.
  3. Describe the group to confirm its new-instance scale-in protection default and current capacity.
What you'll need to have ready
  • autoScalingGroupName: The name of the Auto Scaling group.
  • instanceIds: One or more instance IDs to protect or unprotect (up to 50).
  • protectedFromScaleIn: Whether the instances are protected from termination on scale-in.
For your developer

Arazzo workflow amazon-ec2-auto-scaling:protect-instances-from-scale-in, 3 operations: DescribeAutoScalingInstances → SetInstanceProtection → DescribeAutoScalingGroups. Specs on APIs.io.