Skip to content

Commit

Permalink
fix: Allow disable scale-in protection for ECS capacity provider
Browse files Browse the repository at this point in the history
  • Loading branch information
sugdyzhekov committed Oct 11, 2020
1 parent 78eae4a commit d4f3569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "aws_ecs_capacity_provider" "asg" {

auto_scaling_group_provider {
auto_scaling_group_arn = aws_autoscaling_group.ecs_nodes.arn
managed_termination_protection = "ENABLED"
managed_termination_protection = local.protect_from_scale_in ? "ENABLED" : "DISABLED"

managed_scaling {
maximum_scaling_step_size = 10
Expand Down

0 comments on commit d4f3569

Please sign in to comment.