Skip to content

Commit af319ba

Browse files
committed
feat: add permission for cognito-idp service
1 parent c2154c6 commit af319ba

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,8 @@ The audit policy is comprised of the following permissions:
163163
| | backup:DescribeProtectedResource | |
164164
| | backup:ListRecoveryPointsByResource | |
165165
| | backup:ListReportPlans | |
166-
| | backup:ListRestoreJobs | |
166+
| | backup:ListRestoreJobs | |
167+
| COGNITO-IDP | cognito-idp:GetSigningCertificate | |
168+
| | cognito-idp:GetCSVHeader | |
169+
| | cognito-idp:GetUserPoolMfaConfig | |
170+
| | cognito-idp:GetUICustomization | |

main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,16 @@ data "aws_iam_policy_document" "lacework_audit_policy" {
210210
]
211211
resources = ["*"]
212212
}
213+
214+
statement {
215+
sid = "COGNITO-IDP"
216+
actions = ["cognito-idp:GetSigningCertificate",
217+
"cognito-idp:GetCSVHeader",
218+
"cognito-idp:GetUserPoolMfaConfig",
219+
"cognito-idp:GetUICustomization",
220+
]
221+
resources = ["*"]
222+
}
213223
}
214224

215225
resource "aws_iam_policy" "lacework_audit_policy" {

0 commit comments

Comments
 (0)