From 72fbf86845e846c767acb308f5d9f3074361e6ee Mon Sep 17 00:00:00 2001 From: Marcos Singermann Date: Fri, 15 Nov 2024 17:15:03 -0300 Subject: [PATCH] not optional --- modules/eks/node-group.tf | 1 - modules/eks/variables.tf | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/eks/node-group.tf b/modules/eks/node-group.tf index 0719c994..9d775fc4 100644 --- a/modules/eks/node-group.tf +++ b/modules/eks/node-group.tf @@ -85,7 +85,6 @@ resource "aws_security_group_rule" "netapp" { } resource "aws_security_group_rule" "ecr_endpoint" { - count = var.network_info.ecr_endpoint_sg_id != null ? 1 : 0 security_group_id = var.network_info.ecr_endpoint_sg_id protocol = "tcp" from_port = 443 diff --git a/modules/eks/variables.tf b/modules/eks/variables.tf index e1517f59..3d6b0917 100644 --- a/modules/eks/variables.tf +++ b/modules/eks/variables.tf @@ -48,7 +48,7 @@ variable "network_info" { EOF type = object({ vpc_id = string - ecr_endpoint_sg_id = optional(string, null) + ecr_endpoint_sg_id = string subnets = object({ public = list(object({ name = string