Skip to content

Commit e1e800e

Browse files
mayank0202jnonino
andauthored
removed null from sns topic arn as null is not allowed (#32)
Co-authored-by: Julian Nonino <[email protected]>
1 parent 3e3c045 commit e1e800e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ resource "aws_cloudwatch_metric_alarm" "cpu_high" {
1616
}
1717
alarm_actions = [
1818
aws_appautoscaling_policy.scale_up_policy.arn,
19-
var.sns_topic_arn != "" ? var.sns_topic_arn : null
19+
var.sns_topic_arn != "" ? var.sns_topic_arn : ""
2020
]
2121
tags = var.tags
2222
}
@@ -39,7 +39,7 @@ resource "aws_cloudwatch_metric_alarm" "cpu_low" {
3939
}
4040
alarm_actions = [
4141
aws_appautoscaling_policy.scale_down_policy.arn,
42-
var.sns_topic_arn != "" ? var.sns_topic_arn : null
42+
var.sns_topic_arn != "" ? var.sns_topic_arn : ""
4343
]
4444
tags = var.tags
4545
}

0 commit comments

Comments
 (0)