Skip to content

Commit

Permalink
Merge pull request #30 from ministryofjustice/add-cognito
Browse files Browse the repository at this point in the history
Add wafv2 and SMS permissions to cognito pool
  • Loading branch information
poornima-krishnasamy authored Jan 22, 2024
2 parents 23b82ef + ac5ab08 commit 6e97438
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cognito-idp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ data "aws_iam_policy_document" "cognito_idp_for_github" {
sid = "AllowCognitoList"
effect = "Allow"
actions = [
"cognito-idp:ListUserPools"
"cognito-idp:ListUserPools",
"cognito-idp:DescribeUserPoolDomain"
]
resources = ["*"]
}
Expand All @@ -14,7 +15,9 @@ data "aws_iam_policy_document" "cognito_idp_for_github" {
actions = [
"cognito-idp:List*",
"cognito-idp:Describe*",
"cognito-idp:Get*"
"cognito-idp:Get*",
"wafv2:GetWebACLForResource",
"SNS:GetSMSSandboxAccountStatus"
]
resources = [
"arn:aws:cognito-idp:*:${data.aws_caller_identity.current.account_id}:userpool/*",
Expand Down

0 comments on commit 6e97438

Please sign in to comment.