From 50f5f8b874000058fbed3227e34f4d076950f8b2 Mon Sep 17 00:00:00 2001 From: Daniel Piddock <33028589+dpiddockcmp@users.noreply.github.com> Date: Wed, 18 Mar 2020 09:04:17 +0100 Subject: [PATCH] fix: Do not recreate cluster when no SG given (#798) --- cluster.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster.tf b/cluster.tf index c558e52a66..c5be4b657a 100644 --- a/cluster.tf +++ b/cluster.tf @@ -15,7 +15,7 @@ resource "aws_eks_cluster" "this" { tags = var.tags vpc_config { - security_group_ids = [local.cluster_security_group_id] + security_group_ids = compact([local.cluster_security_group_id]) subnet_ids = var.subnets endpoint_private_access = var.cluster_endpoint_private_access endpoint_public_access = var.cluster_endpoint_public_access