feat: added policy attachment to iam role module
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user