π‘οΈ AWS EC2 Auto Scaling Group Capacity Rebalancing is not enabledπ’
- Contextual name: π‘οΈ Auto Scaling Group Capacity Rebalancing is not enabledπ’
- ID:
/ce/ca/aws/autoscaling/group-capacity-rebalancing
- Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY
- Policy Categories:
RELIABILITY
Logicβ
- π§ prod.logic.yamlπ’
Descriptionβ
Descriptionβ
This policy checks that AWS EC2 Auto Scaling Groups that use a mixed instances launch template but do not have Capacity Rebalancing enabled.
Capacity Rebalancing helps you maintain application availability by proactively launching a new Spot Instance to replace one that is at an increased risk of interruption.
Rationaleβ
Spot Instances offer a cost-effective way to run workloads, however, they can be interrupted when EC2 reclaims capacity. Enabling Capacity Rebalancing helps minimize the impact of such interruptions. When a Spot Instance receives a rebalance recommendation, the Auto Scaling group proactively launches a replacement instance, allowing your application to maintain stability and performance before the original instance is terminated.
Impactβ
If Capacity Rebalancing is not enabled, your application may experience reduced availability or performance degradation when Spot Instances are interrupted and replacements cannot be provisioned promptly.
Auditβ
This policy flags an AWS EC2 Auto Scaling Group as
INCOMPLIANT
if if it uses a mixed instances launch template andCapacity Rebalancing
is not set to Enable.... see more
Remediationβ
Remediationβ
Enable Capacity Rebalancingβ
Enable Capacity Rebalancing for the Auto Scaling Group using the
update-auto-scaling-group
command:From Command Lineβ
aws autoscaling update-auto-scaling-group \
--auto-scaling-group-name {{asg-name}} \
--capacity-rebalance
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
---|---|---|---|---|---|
πΌ AWS Well-Architected β πΌ PERF04-BP04 Use load balancing to distribute traffic across multiple resources | 3 | no data | |||
πΌ AWS Well-Architected β πΌ REL06-BP04 Automate responses (Real-time processing and alarming) | 1 | no data | |||
πΌ AWS Well-Architected β πΌ REL07-BP02 Obtain resources upon detection of impairment to a workload | 1 | no data | |||
πΌ AWS Well-Architected β πΌ REL11-BP03 Automate healing on all layers | 1 | no data | |||
πΌ AWS Well-Architected β πΌ REL13-BP05 Automate recovery | 2 | no data | |||
πΌ AWS Well-Architected β πΌ SUS02-BP01 Scale workload infrastructure dynamically | 1 | no data | |||
πΌ Cloudaware Framework β πΌ System Configuration | 38 | no data |