Last active
January 30, 2021 09:45
-
-
Save sschrijver/5eda9a2ba059e95143df029907bd5d2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_appautoscaling_target" "ecs_target" { | |
max_capacity = 3 | |
min_capacity = 0 | |
resource_id = "service/${data.aws_ecs_cluster.ecs_cluster.cluster_name}/${var.service_name}" | |
role_arn = data.aws_iam_role.ecs_autoscaling_role.arn | |
scalable_dimension = "ecs:service:DesiredCount" | |
service_namespace = "ecs" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment