From 4aa4d78ea5fffb0a4d543ab1457180adde865f47 Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 31 Mar 2023 10:24:34 -0400 Subject: [PATCH] fix --- iam-general-policies/policy.cloudforms.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iam-general-policies/policy.cloudforms.tf b/iam-general-policies/policy.cloudforms.tf index 0249a2f..30a31ba 100644 --- a/iam-general-policies/policy.cloudforms.tf +++ b/iam-general-policies/policy.cloudforms.tf @@ -149,7 +149,7 @@ locals { data "aws_iam_policy_document" "cloudforms_ami" { # for access to remote AMI key dynamic "statement" { - for_each = length(local.cloudforms_ami_kms_keys[data.aws_arn.current.partition]) > 0 ? { data.aws_arn.current.partition = local.cloudforms_ami_kms_keys[data.aws_arn.current.partition] } : {} + for_each = length(local.cloudforms_ami_kms_keys[data.aws_arn.current.partition]) > 0 ? { (data.aws_arn.current.partition) = local.cloudforms_ami_kms_keys[data.aws_arn.current.partition] } : {} iterator = c content { sid = "AWSCloudformsAMIKeyAccess"