Search code examples
amazon-web-servicesterraformamazon-ecs

AWS ECS: how to change estimated EC2 instance warm-up in the scaling policy when using a capacity provider


I use a capacity provider with an Auto Scaling Group (ASG). The scaling policy (AutoScaling-ECSManagedAutoScalingPlan) in the ASG is managed by the capacity provider.

Is it possible to change the estimated instance warm-up parameter in an ASG scaling policy? I tried to create a scaling policy in terraform but it's not used when the capacity provider is applied.


Solution

  • When using capacity provider, it takes over the ASG scaling policy and injects it's own.

    You cannot change it when the provider is used