You must be logged in to view saved presets
Configures ECS service autoscaling and suppresses differences in `tags_all` for older resources.
resource "aws_appautoscaling_target" "ecs_target" {
lifecycle {
ignore_changes = ["tags_all"]
}
max_capacity = 4
min_capacity = 1
resource_id = "service/${aws_ecs_cluster.example.name}/${aws_ecs_service.example.name}"
scalable_dimension = "ecs:service:DesiredCount"
service_namespace = "ecs"
}