Skip to content

Commit

Permalink
add permissions for managing SNS topics (#1775)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdboyd authored Sep 20, 2024
1 parent 2b97475 commit a25af4b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions terraform/modules/external_domain_broker/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,23 @@ data "aws_iam_policy_document" "external_domain_broker_manage_protections_policy
values = [aws_iam_user.iam_user.arn]
}
}

statement {
actions = [
"sns:CreateTopic",
"sns:DeleteTopic",
"sns:TagResource",
"sns:UntagResource"
]
resources = [
"arn:${var.aws_partition}:sns:${var.aws_region}:${var.account_id}:cg-external-domains-*"
]
condition {
test = "StringEquals"
variable = "aws:PrincipalArn"
values = [aws_iam_user.iam_user.arn]
}
}
}

resource "aws_iam_user" "iam_user" {
Expand Down

0 comments on commit a25af4b

Please sign in to comment.