1
0

feat: added policy attachment to iam role module

This commit is contained in:
xpk
2026-03-31 08:13:10 +08:00
parent c8eba9a6f8
commit 36036bb6f5
4 changed files with 20 additions and 14 deletions
@@ -47,4 +47,10 @@ resource "aws_iam_role_policy_attachment" "pa" {
for_each = aws_iam_policy.p
role = aws_iam_role.r.name
policy_arn = each.value.arn
}
resource "aws_iam_role_policy_attachment" "CsiPodIdentity" {
for_each = toset(var.attach-managed-policies)
role = aws_iam_role.r.name
policy_arn = each.value
}