From d90c97860120370bee6d24f020490585e4e55629 Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 31 Mar 2023 10:11:52 -0400 Subject: [PATCH] ix --- iam-general-policies/policy.cloudforms.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iam-general-policies/policy.cloudforms.tf b/iam-general-policies/policy.cloudforms.tf index 49e3e28..5b3d6d7 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(var.regions) : format("arn:%v:sqs:%v:%v:manageiq-awsconfig-queue-*", data.aws_arn.current.partition, r, var.account_id)] + 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)] actions = ["sqs:*"] } @@ -110,7 +110,7 @@ data "aws_iam_policy_document" "cloudforms" { statement { sid = "AWSCloudformsSNS" effect = "Allow" - resources = [for r in values(var.regions) : format("arn:%v:sns:%v:%v:AWSConfig_topic", data.aws_arn.current.partition, r, var.account_id)] + resources = [for r in values(local.regions) : format("arn:%v:sns:%v:%v:AWSConfig_topic", data.aws_arn.current.partition, r, var.account_id)] actions = ["sns:*"] }