From 022a89d2c39abb0091a167a4eba206653c56e0a7 Mon Sep 17 00:00:00 2001 From: baibailiha Date: Tue, 11 Jul 2023 07:32:59 +0800 Subject: [PATCH] fix: Use the prefix_seperator var for node sg prefix (#1751) --- node_groups.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_groups.tf b/node_groups.tf index 771fa60..18bd23a 100644 --- a/node_groups.tf +++ b/node_groups.tf @@ -106,7 +106,7 @@ resource "aws_security_group" "node" { count = local.create_node_sg ? 1 : 0 name = var.node_security_group_use_name_prefix ? null : local.node_sg_name - name_prefix = var.node_security_group_use_name_prefix ? "${local.node_sg_name}-" : null + name_prefix = var.node_security_group_use_name_prefix ? "${local.node_sg_name}${var.prefix_separator}" : null description = var.node_security_group_description vpc_id = var.vpc_id