Skip to content

Commit

Permalink
fix: the for_each on the customer managed references needed to be adj…
Browse files Browse the repository at this point in the history
…usted
  • Loading branch information
gambol99 committed Mar 23, 2024
1 parent db89470 commit 25396c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resource "aws_ssoadmin_managed_policy_attachment" "managed" {
## Attach any customer managed policies to the permissionset
#
resource "aws_ssoadmin_customer_managed_policy_attachment" "customer" {
for_each = toset(var.customer_managed_policy_references)
for_each = { for x in var.customer_managed_policy_references : x.name => x }

instance_arn = var.instance_arn
permission_set_arn = aws_ssoadmin_permission_set.this.arn
Expand Down Expand Up @@ -53,7 +53,7 @@ resource "aws_ssoadmin_permissions_boundary_attachment" "managed" {
## Attach any customer managed boundary policy to the permissionset
#
resource "aws_ssoadmin_permissions_boundary_attachment" "customer" {
for_each = toset(var.customer_managed_boundary_policy_references)
for_each = { for x in var.customer_managed_boundary_policy_references : x.name => x }

instance_arn = var.instance_arn
permission_set_arn = aws_ssoadmin_permission_set.this.arn
Expand Down

0 comments on commit 25396c7

Please sign in to comment.