aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap

UpdatePolicy Resets MinInstancesInService in an ASG

Open
#467 2 comments 3 reactions 0 assignees View on GitHub
compute enhancement
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

The MinInstancesInService property for UpdatePolicy is currently not capable of using the dynamic DesiredCapacity value of the AutoScalingGroup at the time of an update. If you have a stack that has a lower MinSize but dynamically scales up significantly to meet demand. If you set the MinInstancesInService property to 3 (for example) and start an update when the group is scaled to 30 instances, the first thing CloudFormation will do is terminate 27 instances leaving the ASG way under provisioned.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the CloudFormation UpdatePolicy behavior for an AutoScalingGroup when MinInstancesInService is set and DesiredCapacity has scaled above MinSize. Reproduce the update scenario described, then verify that an update preserves the dynamically scaled capacity instead of terminating instances down to the configured minimum.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.