Skip to content

Commit

Permalink
Update_010224_2
Browse files Browse the repository at this point in the history
  • Loading branch information
Buckingham authored and Buckingham committed Feb 1, 2024
1 parent 6a643b5 commit 9b30332
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions terraform/environments/ppud/sns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ resource "aws_sns_topic_subscription" "cw_subscription" {

##### Cloud Watch UAT ######

resource "aws_sns_topic" "cw_alerts" {
resource "aws_sns_topic" "cw_uat_alerts" {
count = local.is-preproduction == true ? 1 : 0
name = "ppud-uat-cw-alerts"
}

resource "aws_sns_topic_policy" "sns_policy" {
resource "aws_sns_topic_policy" "sns_uat_policy" {
count = local.is-preproduction == true ? 1 : 0
arn = aws_sns_topic.cw_alerts[0].arn
arn = aws_sns_topic.cw_uat_alerts[0].arn
policy = data.aws_iam_policy_document.sns_topic_policy_ec2cw[0].json
}

resource "aws_sns_topic_subscription" "cw_subscription" {
resource "aws_sns_topic_subscription" "cw_uat_subscription" {
count = local.is-preproduction == true ? 1 : 0
topic_arn = aws_sns_topic.cw_alerts[0].arn
topic_arn = aws_sns_topic.cw_uat_alerts[0].arn
protocol = "email"
endpoint = "[email protected]"
}

0 comments on commit 9b30332

Please sign in to comment.