Skip to content

Commit 54c83d8

Browse files
kavclaude
andcommitted
feat: add node_iam_additional_policies variable
Allows consumers to attach additional IAM policies to the managed node group role. Defaults to empty map for backward compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1ba2f7c commit 54c83d8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ module "eks" {
202202
}
203203
}
204204
}
205-
taints = var.initial_node_taints
205+
taints = var.initial_node_taints
206+
iam_role_additional_policies = var.node_iam_additional_policies
206207
}
207208
} : {}
208209
access_entries = merge(local.admin_access_entries, local.ro_access_entries, local.extra_access_entries)

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,8 @@ variable "vpc_endpoints" {
193193
description = "vpc endpoints within the cluster vpc network, note: this only works when using the internal created VPC"
194194
default = []
195195
}
196+
variable "node_iam_additional_policies" {
197+
type = map(string)
198+
default = {}
199+
description = "Map of IAM policy name to ARN to attach to the managed node group IAM role."
200+
}

0 commit comments

Comments
 (0)