mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-25 10:51:06 +01:00
feat: Add optional list of policy ARNs for attachment to Karpenter IRSA (#2537)
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c013f7bfbc
commit
bd387d69fa
@@ -175,6 +175,13 @@ resource "aws_iam_role_policy_attachment" "irsa" {
|
||||
policy_arn = aws_iam_policy.irsa[0].arn
|
||||
}
|
||||
|
||||
resource "aws_iam_role_policy_attachment" "irsa_additional" {
|
||||
for_each = { for k, v in var.policies : k => v if local.create_irsa }
|
||||
|
||||
role = aws_iam_role.irsa[0].name
|
||||
policy_arn = each.value
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Node Termination Queue
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user