diff --git a/iam-general-policies/policy.cloudforms.tf b/iam-general-policies/policy.cloudforms.tf index 5b3d6d7..0249a2f 100644 --- a/iam-general-policies/policy.cloudforms.tf +++ b/iam-general-policies/policy.cloudforms.tf @@ -102,7 +102,7 @@ data "aws_iam_policy_document" "cloudforms" { statement { sid = "AWSManageCloudformsSQS" effect = "Allow" - resources = [for r in values(local.regions) : format("arn:%v:sqs:%v:%v:manageiq-awsconfig-queue-*", data.aws_arn.current.partition, r, var.account_id)] + resources = [for r in local.regions : format("arn:%v:sqs:%v:%v:manageiq-awsconfig-queue-*", data.aws_arn.current.partition, r, var.account_id)] actions = ["sqs:*"] } @@ -110,7 +110,7 @@ data "aws_iam_policy_document" "cloudforms" { statement { sid = "AWSCloudformsSNS" effect = "Allow" - resources = [for r in values(local.regions) : format("arn:%v:sns:%v:%v:AWSConfig_topic", data.aws_arn.current.partition, r, var.account_id)] + resources = [for r in local.regions : format("arn:%v:sns:%v:%v:AWSConfig_topic", data.aws_arn.current.partition, r, var.account_id)] actions = ["sns:*"] }