Reputation: 141
I’m using ECS Managed Auto Scaling with Target Tracking.
When the Target Tracking service performs a scale-out action, everything works as expected: the Auto Scaling Group (ASG) launches new instances to accommodate the increased demand.
However, when the Target Tracking service performs a scale-in action, the following issues occur:
This behavior seems inconsistent with the expected functionality, where the ASG should terminate unused instances during a scale-in event.
CloudWatch metrics show that the Target Tracking policy is triggering correctly.
Could you help me to figure out the following:
Upvotes: 0
Views: 224
Reputation: 141
So, guys, the issue was caused by the absence of this tag in the Auto Scaling Group configuration:
resource "aws_autoscaling_group" "test" {
# ... other configuration, including potentially other tags ...
tag {
key = "AmazonECSManaged"
value = true
propagate_at_launch = true
}
}
Upvotes: 0