Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 22, 2023
1 parent 08fa58b commit 13e2613
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions iam-general-policies/custom_policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ locals {
create_policy = true
}
"cloudforms_ami" = {
name = "cloudforms-shared-ami"
path = "/"
description = "Policy for INF CSVD CloudForms Access shared AMIs"
policy = length(local.cloudforms_ami_kms_keys[data.aws_arn.current.partition]) > 0 ? data.aws_iam_policy_document.cloudforms_ami.json : data.aws_iam_policy_document.empty.json
name = "cloudforms-shared-ami"
path = "/"
description = "Policy for INF CSVD CloudForms Access shared AMIs"
# policy = length(local.cloudforms_ami_kms_keys[data.aws_arn.current.partition]) > 0 ? data.aws_iam_policy_document.cloudforms_ami.json : data.aws_iam_policy_document.empty.json
policy = length(local.cloudforms_ami_kms_keys[data.aws_arn.current.partition]) > 0 ? data.aws_iam_policy_document.cloudforms_ami.json : null
create_policy = true
}

Expand Down

0 comments on commit 13e2613

Please sign in to comment.