From e0f2f45d4c5c92f9aacb1ab80a76797709f988fc Mon Sep 17 00:00:00 2001 From: Clete Blackwell II Date: Thu, 13 Jul 2023 08:03:00 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20fix=20ternary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tf-alarm-topic.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tf-alarm-topic.tf b/tf-alarm-topic.tf index 8ac7926..8112dd0 100644 --- a/tf-alarm-topic.tf +++ b/tf-alarm-topic.tf @@ -1,7 +1,7 @@ locals { - enable_alarms = var.alarm_configuration != null + enable_alarms = var.alarm_configuration != null create_sns_topic = local.enable_alarms && can([var.alarm_configuration.email_notification_list]) - sns_topic_arn = local.create_sns_topic ? aws_sns_topic.alarms[0].arn : var.alarm_configuration.sns_topic_arn + sns_topic_arn = local.enable_alarms ? local.create_sns_topic ? aws_sns_topic.alarms[0].arn : var.alarm_configuration.sns_topic_arn : "" } resource "aws_sns_topic" "alarms" {