Skip to content

Commit

Permalink
ix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 31, 2023
1 parent 45c9027 commit d90c978
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iam-general-policies/policy.cloudforms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ 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:*"]
}

# for SNS
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:*"]
}

Expand Down

0 comments on commit d90c978

Please sign in to comment.