DNXLabs / terraform-aws-ecs

This terraform module builds an Elastic Container Service(ECS) Cluster in AWS.
https://modules.dnx.one/
Apache License 2.0
29 stars 31 forks source link

Capacity rebalance #28

Closed jrpradojr closed 3 years ago

jrpradojr commented 3 years ago

Add option to enable capacity rebalance on auto scaling groups

Types of changes

What types of changes does your code introduce to terraform-aws-ecs? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

Amazon EC2 Auto Scaling is aware of EC2 instance rebalance recommendation notifications. The Amazon EC2 Spot service emits these notifications when Spot Instances are at elevated risk of interruption. When Capacity Rebalancing is enabled for an Auto Scaling group, Amazon EC2 Auto Scaling attempts to proactively replace Spot Instances in the group that have received a rebalance recommendation, providing the opportunity to rebalance your workload to new Spot Instances that are not at elevated risk of interruption. This means that your workload can continue to process the work while Amazon EC2 Auto Scaling launches a new Spot Instance before an existing instance is interrupted.

arthurbdiniz commented 3 years ago

@lzrocha, Fixed instance_types variable error.