mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-26 03:11:06 +01:00
feat: Add support for pod identity association on EKS addons (#3203)
This commit is contained in:
@@ -41,11 +41,18 @@ module "eks" {
|
||||
coredns = {
|
||||
most_recent = true
|
||||
}
|
||||
eks-pod-identity-agent = {
|
||||
most_recent = true
|
||||
}
|
||||
kube-proxy = {
|
||||
most_recent = true
|
||||
}
|
||||
vpc-cni = {
|
||||
most_recent = true
|
||||
pod_identity_association = [{
|
||||
role_arn = module.aws_vpc_cni_ipv4_pod_identity.iam_role_arn
|
||||
service_account = "aws-node"
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -388,6 +395,18 @@ module "vpc" {
|
||||
tags = local.tags
|
||||
}
|
||||
|
||||
module "aws_vpc_cni_ipv4_pod_identity" {
|
||||
source = "terraform-aws-modules/eks-pod-identity/aws"
|
||||
version = "~> 1.6"
|
||||
|
||||
name = "aws-vpc-cni-ipv4"
|
||||
|
||||
attach_aws_vpc_cni_policy = true
|
||||
aws_vpc_cni_enable_ipv4 = true
|
||||
|
||||
tags = local.tags
|
||||
}
|
||||
|
||||
data "aws_ami" "eks_default" {
|
||||
most_recent = true
|
||||
owners = ["amazon"]
|
||||
|
||||
Reference in New Issue
Block a user