Skip to content

Commit

Permalink
Merge pull request #3889 from ministryofjustice/Update_SNS_Sub_061123_5
Browse files Browse the repository at this point in the history
Update sns sub 061123 5
  • Loading branch information
nbuckingham72 authored Nov 6, 2023
2 parents 7b264fc + 22c6b12 commit 05b9fd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions terraform/environments/ppud/secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ resource "aws_secretsmanager_secret_version" "sversion" {


#### Secret for SNS email address ###
resource "aws_secretsmanager_secret" "support_email_account" {
count = local.is-production == true ? 1 : 0
name = "Application_email_account"
description = "email address of the support account for cw alerts"
recovery_window_in_days = 0
}
#resource "aws_secretsmanager_secret" "support_email_account" {
# count = local.is-production == true ? 1 : 0
# name = "Application_email_account"
# description = "email address of the support account for cw alerts"
# recovery_window_in_days = 0
#}


#resource "aws_secretsmanager_secret_version" "support_email_account" {
Expand Down
3 changes: 2 additions & 1 deletion terraform/environments/ppud/sns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ resource "aws_sns_topic_subscription" "cw_subscription" {
count = local.is-production == true ? 1 : 0
topic_arn = aws_sns_topic.cw_alerts[0].arn
protocol = "email"
endpoint = aws_secretsmanager_secret_version.support_email_account[0].secret_string
endpoint = "[email protected]"
# endpoint = aws_secretsmanager_secret_version.support_email_account[0].secret_string
}

0 comments on commit 05b9fd7

Please sign in to comment.