Skip to content

Commit 9ebfcec

Browse files
authored
feat: fixing legacy managed_policy_arns (#158)
1 parent 7a5a5b0 commit 9ebfcec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/github-oidc/main.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ resource "aws_iam_role" "github_actions" {
4646
}
4747
]
4848
})
49+
}
50+
51+
resource "aws_iam_role_policy_attachment" "github_actions" {
52+
for_each = toset(var.managed_policy_arns)
4953

50-
managed_policy_arns = var.managed_policy_arns
54+
role = aws_iam_role.github_actions.name
55+
policy_arn = each.value
5156
}

0 commit comments

Comments
 (0)