From 5ad5547182d1d69ae27359378abdae8820850e88 Mon Sep 17 00:00:00 2001 From: Andrei Dumitra Date: Mon, 27 Feb 2023 13:48:08 +0200 Subject: [PATCH] take into account vpc_security_group_ids --- modules/aws-eks-managed-node-groups/managed-launch-templates.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/aws-eks-managed-node-groups/managed-launch-templates.tf b/modules/aws-eks-managed-node-groups/managed-launch-templates.tf index 13482f0463..6f75493f22 100644 --- a/modules/aws-eks-managed-node-groups/managed-launch-templates.tf +++ b/modules/aws-eks-managed-node-groups/managed-launch-templates.tf @@ -55,7 +55,7 @@ resource "aws_launch_template" "managed_node_groups" { network_interfaces { associate_public_ip_address = local.managed_node_group["public_ip"] - security_groups = var.context.worker_security_group_ids + security_groups = concat(var.context.worker_security_group_ids, try(local.managed_node_group["vpc_security_group_ids"], [])) } lifecycle {