Skip to content

Commit

Permalink
fix: Policy generation when ebs_csi_kms_cmk_ids is set (#203)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Babenko <[email protected]>
  • Loading branch information
schantaraud and antonbabenko authored Mar 23, 2022
1 parent 691bb92 commit e2b4054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/iam-role-for-service-accounts-eks/policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ data "aws_iam_policy_document" "ebs_csi" {
"kms:RevokeGrant",
]

resources = statement.value
resources = var.ebs_csi_kms_cmk_ids

condition {
test = "Bool"
Expand All @@ -277,7 +277,7 @@ data "aws_iam_policy_document" "ebs_csi" {
"kms:DescribeKey",
]

resources = statement.value
resources = var.ebs_csi_kms_cmk_ids
}
}
}
Expand Down

0 comments on commit e2b4054

Please sign in to comment.