Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ module "eks" {
cluster_endpoint_public_access_cidrs = var.allowed_public_cidrs
enable_irsa = true
openid_connect_audiences = ["sts.amazonaws.com"]
bootstrap_self_managed_addons = var.bootstrap_self_managed_addons
enable_cluster_creator_admin_permissions = true
cluster_encryption_config = var.cluster_encryption_config
cluster_encryption_policy_path = var.iam_path
Expand Down Expand Up @@ -274,6 +273,27 @@ module "eks" {
create_node_security_group = var.create_node_security_group
node_security_group_additional_rules = merge(var.node_security_group_additional_rules, local.default_sg_rules)

bootstrap_self_managed_addons = var.bootstrap_self_managed_addons
cluster_addons = {
coredns = {
most_recent = true
}
kube-proxy = {
most_recent = true
}
vpc-cni = {
most_recent = true
before_compute = true
configuration_values = jsonencode({
env = {
# Reference docs https://docs.aws.amazon.com/eks/latest/userguide/cni-increase-ip-addresses.html
ENABLE_PREFIX_DELEGATION = "true"
WARM_PREFIX_TARGET = "1"
}
})
}
}

cluster_enabled_log_types = var.cluster_enabled_log_types
create_cloudwatch_log_group = false
tags = local.tags
Expand All @@ -286,7 +306,7 @@ module "eks_auth" {
manage_aws_auth_configmap = var.manage_aws_auth_configmap
aws_auth_roles = local.role_bindings

depends_on = [ module.eks ]
depends_on = [module.eks]
}

moved {
Expand Down