1
0

feat: LambdaAccessKey module

This commit is contained in:
xpk
2026-06-14 16:05:47 +08:00
parent 2ef2ad1571
commit 5611195a0d
8 changed files with 419 additions and 1 deletions
@@ -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
}