Skip to content

Commit

Permalink
feat: add permission for cognito-idp service
Browse files Browse the repository at this point in the history
  • Loading branch information
ljohnny-git committed Dec 4, 2024
1 parent c2154c6 commit 5f0203e
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 @@ -210,6 +210,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 5f0203e

Please sign in to comment.