diff --git a/terraform/environments/ppud/iam.tf b/terraform/environments/ppud/iam.tf index 8f1c35e5eec..f0aaeb03c21 100644 --- a/terraform/environments/ppud/iam.tf +++ b/terraform/environments/ppud/iam.tf @@ -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" ] @@ -889,7 +894,7 @@ data "aws_iam_policy_document" "sns_topic_policy_ec2cw" { resources = [ aws_sns_topic.cw_alerts[0].arn ] - } + } } #################################################### diff --git a/terraform/environments/ppud/sns.tf b/terraform/environments/ppud/sns.tf index d3302357327..d1d6dfa7b2f 100644 --- a/terraform/environments/ppud/sns.tf +++ b/terraform/environments/ppud/sns.tf @@ -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"