We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6fe39a5 + 155aefa commit f2ea5f8Copy full SHA for f2ea5f8
autoscaling.tf
@@ -6,6 +6,14 @@ resource "aws_appautoscaling_target" "ecs_target" {
6
scalable_dimension = "ecs:service:DesiredCount"
7
service_namespace = "ecs"
8
depends_on = [aws_ecs_service.application]
9
+
10
+ lifecycle {
11
+ replace_triggered_by = [
12
+ # Replace `aws_appautoscaling_target` each time this instance of
13
+ # the `aws_ecs_service` is replaced.
14
+ aws_ecs_service.application.id
15
+ ]
16
+ }
17
}
18
19
// metric used for auto scale
0 commit comments