Skip to content

Commit 281db86

Browse files
feat: add pod identity association support for EKS addons
1 parent d4b33d8 commit 281db86

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,15 @@ resource "aws_eks_addon" "cluster" {
175175
resolve_conflicts_on_update = lookup(each.value, "resolve_conflicts_on_update", lookup(each.value, "resolve_conflicts", null))
176176
service_account_role_arn = lookup(each.value, "service_account_role_arn", null)
177177

178+
dynamic "pod_identity_association" {
179+
for_each = lookup(each.value, "pod_identity_association", {})
180+
181+
content {
182+
service_account = pod_identity_association.key
183+
role_arn = pod_identity_association.value
184+
}
185+
}
186+
178187
tags = merge(module.label.tags, each.value.additional_tags)
179188

180189
depends_on = [

variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ variable "addons" {
172172
resolve_conflicts_on_create = optional(string, null)
173173
resolve_conflicts_on_update = optional(string, null)
174174
service_account_role_arn = optional(string, null)
175+
pod_identity_association = optional(map(string), {})
175176
create_timeout = optional(string, null)
176177
update_timeout = optional(string, null)
177178
delete_timeout = optional(string, null)

0 commit comments

Comments
 (0)