Skip to content

Commit

Permalink
feat: add permission for cognito-idp service (#114)
Browse files Browse the repository at this point in the history
Signed-off-by: ljohnny <[email protected]>
  • Loading branch information
ljohnny-git authored Dec 4, 2024
1 parent f87b1b2 commit fb67991
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,8 @@ The audit policy is comprised of the following permissions:
| | backup:DescribeProtectedResource | |
| | backup:ListRecoveryPointsByResource | |
| | backup:ListReportPlans | |
| | backup:ListRestoreJobs | |
| | backup:ListRestoreJobs | |
| COGNITO-IDP | cognito-idp:GetSigningCertificate | |
| | cognito-idp:GetCSVHeader | |
| | cognito-idp:GetUserPoolMfaConfig | |
| | cognito-idp:GetUICustomization | |
10 changes: 10 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,16 @@ data "aws_iam_policy_document" "lacework_audit_policy" {
]
resources = ["*"]
}

statement {
sid = "COGNITOIDP"
actions = ["cognito-idp:GetSigningCertificate",
"cognito-idp:GetCSVHeader",
"cognito-idp:GetUserPoolMfaConfig",
"cognito-idp:GetUICustomization",
]
resources = ["*"]
}
}

resource "aws_iam_policy" "lacework_audit_policy" {
Expand Down

0 comments on commit fb67991

Please sign in to comment.