feat: LambdaAccessKey module
This commit is contained in:
@@ -50,7 +50,7 @@ resource "aws_iam_role_policy_attachment" "pa" {
|
||||
}
|
||||
|
||||
resource "aws_iam_role_policy_attachment" "mp-attachments" {
|
||||
for_each = toset(var.attach-managed-policies)
|
||||
for_each = { for index, value in var.attach-managed-policies : tostring(index + 1) => value } # var.attach-managed-policies
|
||||
role = aws_iam_role.r.name
|
||||
policy_arn = each.value
|
||||
}
|
||||
Reference in New Issue
Block a user