diff --git a/main.tf b/main.tf index ae5a0366e5..15e777d03c 100644 --- a/main.tf +++ b/main.tf @@ -27,7 +27,7 @@ resource "aws_eks_cluster" "this" { subnet_ids = coalescelist(var.control_plane_subnet_ids, var.subnet_ids) endpoint_private_access = var.cluster_endpoint_private_access endpoint_public_access = var.cluster_endpoint_public_access - public_access_cidrs = var.cluster_endpoint_public_access ? var.cluster_endpoint_public_access_cidrs : [] + public_access_cidrs = var.cluster_endpoint_public_access_cidrs } dynamic "kubernetes_network_config" {