Skip to content

Commit

Permalink
add cron_job_failure_monitoring to list of sns topics lambda can publ…
Browse files Browse the repository at this point in the history
…ish to
  • Loading branch information
sgress454 committed Jan 8, 2025
1 parent 4479484 commit b9e3ca4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion terraform/addons/monitoring/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,10 @@ data "aws_iam_policy_document" "cron_monitoring_lambda" {
"sns:Publish"
]

resources = lookup(var.sns_topic_arns_map, "cron_monitoring", var.default_sns_topic_arns)
resources = distinct(concat(
lookup(var.sns_topic_arns_map, "cron_monitoring", var.default_sns_topic_arns),
lookup(var.sns_topic_arns_map, "cron_job_failure_monitoring", var.default_sns_topic_arns)
))

effect = "Allow"
}
Expand Down

0 comments on commit b9e3ca4

Please sign in to comment.