diff --git a/iam-general-policies/custom_policies.tf b/iam-general-policies/custom_policies.tf index cd425fd..6c51c6d 100644 --- a/iam-general-policies/custom_policies.tf +++ b/iam-general-policies/custom_policies.tf @@ -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 }