Skip to content

Commit

Permalink
Merge pull request #8687 from ministryofjustice/Update_151124_4
Browse files Browse the repository at this point in the history
Update_151124_4
  • Loading branch information
nbuckingham72 authored Nov 15, 2024
2 parents 85bf724 + 4be43a5 commit 5e272a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion terraform/environments/ppud/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -872,10 +872,15 @@ data "aws_iam_policy_document" "sns_topic_policy_ec2cw" {
actions = [
"SNS:GetTopicAttributes",
"SNS:SetTopicAttributes",
"SNS:GetSubscriptionAttributes",
"SNS:SetSubscriptionAttributes",
"SNS:AddPermission",
"SNS:DeleteTopic",
"SNS:Subscribe",
"SNS:Unsubscribe",
"SNS:ListSubscriptions",
"SNS:ListSubscriptionsByTopic",
"SNS:ListTopics",
"SNS:Publish",
"SNS:Receive"
]
Expand All @@ -889,7 +894,7 @@ data "aws_iam_policy_document" "sns_topic_policy_ec2cw" {
resources = [
aws_sns_topic.cw_alerts[0].arn
]
}
}
}

####################################################
Expand Down
8 changes: 4 additions & 4 deletions terraform/environments/ppud/sns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,28 @@ resource "aws_sns_topic_subscription" "cw_sms_subscription" {
}

/*
resource "aws_sns_topic_subscription" "cw_sms_subscription" {
resource "aws_sns_topic_subscription" "cw_sms_subscription1" {
count = local.is-production == true ? 1 : 0
topic_arn = aws_sns_topic.cw_alerts[0].arn
protocol = "sms"
endpoint = "+447879063551" # Gabriella Browning
}
resource "aws_sns_topic_subscription" "cw_sms_subscription" {
resource "aws_sns_topic_subscription" "cw_sms_subscription2" {
count = local.is-production == true ? 1 : 0
topic_arn = aws_sns_topic.cw_alerts[0].arn
protocol = "sms"
endpoint = "+447584337970" # David Savage (work)
}
resource "aws_sns_topic_subscription" "cw_sms_subscription" {
resource "aws_sns_topic_subscription" "cw_sms_subscription3" {
count = local.is-production == true ? 1 : 0
topic_arn = aws_sns_topic.cw_alerts[0].arn
protocol = "sms"
endpoint = "+447884053737" # David Savage (personal)
}
resource "aws_sns_topic_subscription" "cw_sms_subscription" {
resource "aws_sns_topic_subscription" "cw_sms_subscription4" {
count = local.is-production == true ? 1 : 0
topic_arn = aws_sns_topic.cw_alerts[0].arn
protocol = "sms"
Expand Down

0 comments on commit 5e272a4

Please sign in to comment.