Skip to content

Commit e17387f

Browse files
CCM-10258: Discrete Control and Data SNS Topics
1 parent 2b90132 commit e17387f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

infrastructure/modules/eventpub/cloudwatch_log_group_sns_delivery_logging_failure.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_cloudwatch_log_group" "sns_delivery_logging_failure" {
33

44
# SNS doesn't allow specifying a log group and is derived as: sns/${region}/${account_id}/${name_of_sns_topic}/Failure
55
# (for failure logs)
6-
name = "sns/${var.region}/${var.aws_account_id}/${local.csi}${contains(each.key, "data") ? "-data" : "-control"}/Failure"
6+
name = "sns/${var.region}/${var.aws_account_id}/${local.csi}${each.key == "data" ? "-data" : "-control"}/Failure"
77
kms_key_id = var.kms_key_arn
88
retention_in_days = var.log_retention_in_days
99
}

infrastructure/modules/eventpub/cloudwatch_log_group_sns_delivery_logging_success.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_cloudwatch_log_group" "sns_delivery_logging_success" {
33

44
# SNS doesn't allow specifying a log group and is derived as: sns/${region}/${account_id}/${name_of_sns_topic}/Failure
55
# (for failure logs)
6-
name = "sns/${var.region}/${var.aws_account_id}/${local.csi}${contains(each.key, "data") ? "-data" : "-control"}"
6+
name = "sns/${var.region}/${var.aws_account_id}/${local.csi}${each.key == "data" ? "-data" : "-control"}"
77
kms_key_id = var.kms_key_arn
88
retention_in_days = var.log_retention_in_days
99
}

0 commit comments

Comments
 (0)