Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
corang committed Mar 27, 2024
1 parent 47664e2 commit 73736c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ data "aws_iam_policy_document" "kms_access" {
sid = "KMS Key Default"
principals {
type = "AWS"
identifiers = merge(
identifiers = concat(
["arn:${data.aws_partition.current.partition}:iam::${data.aws_caller_identity.current.account_id}:root"],
var.kms_key_policy_default_identities
)
}

dynamic "principals" {
for_each = length(var.kms_key_policy_default_services) > 0 ? [1] : []
content{
type = "Service"
for_each = length(var.kms_key_policy_default_services) > 0 ? [1] : []
content {
type = "Service"
identifiers = var.kms_key_policy_default_services
}
}
Expand Down

0 comments on commit 73736c9

Please sign in to comment.