Skip to content

Commit fb67991

Browse files
authored
feat: add permission for cognito-idp service (#114)
Signed-off-by: ljohnny <ljohnny@fortinet.com>
1 parent f87b1b2 commit fb67991

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
@@ -211,6 +211,16 @@ data "aws_iam_policy_document" "lacework_audit_policy" {
211211
]
212212
resources = ["*"]
213213
}
214+
215+
statement {
216+
sid = "COGNITOIDP"
217+
actions = ["cognito-idp:GetSigningCertificate",
218+
"cognito-idp:GetCSVHeader",
219+
"cognito-idp:GetUserPoolMfaConfig",
220+
"cognito-idp:GetUICustomization",
221+
]
222+
resources = ["*"]
223+
}
214224
}
215225

216226
resource "aws_iam_policy" "lacework_audit_policy" {

0 commit comments

Comments
 (0)