Commit 5b882c0 Luca Venturelli
authored
1 parent f97842f commit 5b882c0 Copy full SHA for 5b882c0
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ resource "aws_cloudwatch_metric_alarm" "alarm_down" {
10
10
threshold = var. threshold_down
11
11
12
12
dimensions = {
13
- var.dimension_name = coalesce (var. dimension_value , var. autoscaling_group_names [count . index ])
13
+ " ${ var.dimension_name} " = coalesce (var. dimension_value , var. autoscaling_group_names [count . index ])
14
14
}
15
15
16
16
alarm_description = " This metric monitors CPU utilization down"
@@ -29,7 +29,7 @@ resource "aws_cloudwatch_metric_alarm" "alarm_up" {
29
29
threshold = var. threshold_up
30
30
31
31
dimensions = {
32
- var.dimension_name = coalesce (var. dimension_value , var. autoscaling_group_names [count . index ])
32
+ " ${ var.dimension_name} " = coalesce (var. dimension_value , var. autoscaling_group_names [count . index ])
33
33
}
34
34
35
35
alarm_description = " This metric monitors CPU utilization up"
You can’t perform that action at this time.
0 commit comments