diff --git a/modules/aws-eks-managed-node-groups/templates/userdata-amazonlinux2eks.tpl b/modules/aws-eks-managed-node-groups/templates/userdata-amazonlinux2eks.tpl index 964ff429b7..b8f31891f1 100644 --- a/modules/aws-eks-managed-node-groups/templates/userdata-amazonlinux2eks.tpl +++ b/modules/aws-eks-managed-node-groups/templates/userdata-amazonlinux2eks.tpl @@ -29,7 +29,7 @@ mount -a %{ if length(service_ipv4_cidr) > 0 ~} export SERVICE_IPV4_CIDR=${service_ipv4_cidr} %{ endif ~} -%{ if length(service_ipv4_cidr) > 0 ~} +%{ if length(service_ipv6_cidr) > 0 ~} export SERVICE_IPV6_CIDR=${service_ipv6_cidr} %{ endif ~} %{ if length(custom_ami_id) > 0 ~}