diff --git a/README.md b/README.md
index 1165ac3..a96a8cb 100644
--- a/README.md
+++ b/README.md
@@ -317,6 +317,7 @@ _Note: Since this module manages all of the Kubernetes addon dependencies requir
| [enable\_v3\_node\_groups](#input\_enable\_v3\_node\_groups) | Enable v3 node groups, which uses a single ASG and all other node groups enabled elsewhere | `bool` | `false` | no |
| [enable\_v3\_node\_migration](#input\_enable\_v3\_node\_migration) | Enable v3 node and v2 node groups at the same time. Intended for use with migration to v3 nodes. | `bool` | `false` | no |
| [enable\_v3\_node\_taints](#input\_enable\_v3\_node\_taints) | When v3 node groups are enabled, use the node taints. Defaults to true | `bool` | `true` | no |
+| [enable\_vpc\_cni\_prefix\_delegation](#input\_enable\_vpc\_cni\_prefix\_delegation) | Whether set ENABLE\_PREFIX\_DELEGATION for vpc-cni addon | `bool` | `true` | no |
| [external\_dns\_helm\_chart\_name](#input\_external\_dns\_helm\_chart\_name) | The name of the Helm chart in the repository for ExternalDNS. | `string` | `"external-dns"` | no |
| [external\_dns\_helm\_chart\_repository](#input\_external\_dns\_helm\_chart\_repository) | The repository containing the ExternalDNS helm chart. | `string` | `"https://charts.bitnami.com/bitnami"` | no |
| [external\_dns\_helm\_chart\_version](#input\_external\_dns\_helm\_chart\_version) | Helm chart version for ExternalDNS. See https://hub.helm.sh/charts/bitnami/external-dns for updates. | `string` | `"6.10.2"` | no |
diff --git a/main.tf b/main.tf
index 689ea98..875606d 100644
--- a/main.tf
+++ b/main.tf
@@ -287,8 +287,8 @@ module "eks" {
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"
+ ENABLE_PREFIX_DELEGATION = var.enable_vpc_cni_prefix_delegation ? "true" : null
+ WARM_PREFIX_TARGET = var.enable_vpc_cni_prefix_delegation ? "1" : null
}
})
}
diff --git a/variables.tf b/variables.tf
index 937dbe9..85a24fa 100644
--- a/variables.tf
+++ b/variables.tf
@@ -747,3 +747,9 @@ variable "node_groups" {
type = any
default = null
}
+
+variable "enable_vpc_cni_prefix_delegation" {
+ type = bool
+ default = true
+ description = "Whether set ENABLE_PREFIX_DELEGATION for vpc-cni addon"
+}