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 7f466cd + 917a954 commit 12e95e2Copy full SHA for 12e95e2
main.tf
@@ -49,7 +49,7 @@ resource "aws_cloudwatch_metric_alarm" "main" {
49
statistic = each.value.statistic
50
alarm_description = each.value.description
51
52
- alarm_actions = [coalesce(var.sns_topic_arn, aws_sns_topic.main[0].arn)]
+ alarm_actions = [coalesce(var.sns_topic_arn, try(aws_sns_topic.main[0].arn, null))]
53
treat_missing_data = "notBreaching"
54
55
tags = var.tags
0 commit comments