From 3f6d915eef6672440df8c82468c31ed2bc2fce54 Mon Sep 17 00:00:00 2001 From: Sebastian Melchior <801781+smelchior@users.noreply.github.com> Date: Tue, 6 Dec 2022 22:55:02 +0100 Subject: [PATCH] fix: `public_access_cidrs` require a value even if public endpoint is disabled (#2320) Co-authored-by: Bryant Biggs --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" {