Skip to content

Commit

Permalink
removed null from sns topic arn as null is not allowed (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: Julian Nonino <jnonino@users.noreply.github.com>
  • Loading branch information
mayank0202 and jnonino authored Apr 9, 2024
1 parent 3e3c045 commit e1e800e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resource "aws_cloudwatch_metric_alarm" "cpu_high" {
}
alarm_actions = [
aws_appautoscaling_policy.scale_up_policy.arn,
var.sns_topic_arn != "" ? var.sns_topic_arn : null
var.sns_topic_arn != "" ? var.sns_topic_arn : ""
]
tags = var.tags
}
Expand All @@ -39,7 +39,7 @@ resource "aws_cloudwatch_metric_alarm" "cpu_low" {
}
alarm_actions = [
aws_appautoscaling_policy.scale_down_policy.arn,
var.sns_topic_arn != "" ? var.sns_topic_arn : null
var.sns_topic_arn != "" ? var.sns_topic_arn : ""
]
tags = var.tags
}
Expand Down

0 comments on commit e1e800e

Please sign in to comment.