We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eea2372 commit 48f0857Copy full SHA for 48f0857
main.tf
@@ -14,10 +14,10 @@ resource "aws_cloudwatch_metric_alarm" "cpu_high" {
14
ClusterName = var.ecs_cluster_name
15
ServiceName = var.ecs_service_name
16
}
17
- alarm_actions = [
+ alarm_actions = compact([
18
aws_appautoscaling_policy.scale_up_policy.arn,
19
var.sns_topic_arn != "" ? var.sns_topic_arn : ""
20
- ]
+ ])
21
tags = var.tags
22
23
@@ -37,10 +37,10 @@ resource "aws_cloudwatch_metric_alarm" "cpu_low" {
37
38
39
40
41
aws_appautoscaling_policy.scale_down_policy.arn,
42
43
44
45
46
0 commit comments