Skip to content

Commit abaee26

Browse files
audit kms s3 policy fix
1 parent eee52b8 commit abaee26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

infrastructure/stacks/api-layer/iam_policies.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ data "aws_iam_policy_document" "s3_rules_kms_key_policy" {
175175
effect = "Allow"
176176
principals {
177177
type = "AWS"
178-
identifiers = [aws_iam_role.eligibility_lambda_role.arn, aws_iam_role.eligibility_audit_firehose_role.arn]
178+
identifiers = [aws_iam_role.eligibility_lambda_role.arn]
179179
}
180180
actions = ["kms:Decrypt"]
181181
resources = ["*"]
@@ -208,7 +208,7 @@ data "aws_iam_policy_document" "s3_audit_kms_key_policy" {
208208
effect = "Allow"
209209
principals {
210210
type = "AWS"
211-
identifiers = [aws_iam_role.eligibility_lambda_role.arn]
211+
identifiers = [aws_iam_role.eligibility_lambda_role.arn, aws_iam_role.eligibility_audit_firehose_role.arn]
212212
}
213213
actions = [
214214
"kms:Decrypt",

0 commit comments

Comments
 (0)