mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-24 18:31:09 +01:00
feat: Add support for Pod Identity assocation on Karpenter sub-module (#3031)
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
This commit is contained in:
@@ -411,6 +411,21 @@ resource "aws_iam_role_policy_attachment" "controller_additional" {
|
||||
policy_arn = each.value
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Pod Identity Association
|
||||
################################################################################
|
||||
|
||||
resource "aws_eks_pod_identity_association" "karpenter" {
|
||||
count = local.create_iam_role && var.enable_pod_identity && var.create_pod_identity_association ? 1 : 0
|
||||
|
||||
cluster_name = var.cluster_name
|
||||
namespace = var.namespace
|
||||
service_account = var.service_account
|
||||
role_arn = aws_iam_role.controller[0].arn
|
||||
|
||||
tags = var.tags
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Node Termination Queue
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user