From 7d2710749848d8946722bf24a429bbeeeb3ce901 Mon Sep 17 00:00:00 2001 From: Bruno da Silva Valenga Date: Fri, 10 Mar 2023 16:51:46 +1000 Subject: [PATCH] remove sg group --- sg-nodes.tf | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 sg-nodes.tf diff --git a/sg-nodes.tf b/sg-nodes.tf deleted file mode 100644 index 86b919a..0000000 --- a/sg-nodes.tf +++ /dev/null @@ -1,28 +0,0 @@ -data "aws_security_group" "selected" { - filter { - name = "tag:Name" - values = ["ecs-${var.cluster_name}-nodes"] - } -} -resource "aws_security_group_rule" "vpc_from_nlb_to_ecs_nodes" { - for_each = try(toset(var.security_groups), []) - description = "From NLB subnet" - type = "ingress" - from_port = 0 - to_port = 65535 - protocol = "TCP" - security_group_id = each.key - cidr_blocks = var.nlb_subnets_cidr -} - - -resource "aws_security_group_rule" "all_from_nlb_to_ecs_nodes" { - for_each = try(toset(var.security_groups), []) - description = "for NLB" - type = "ingress" - from_port = 0 - to_port = 65535 - protocol = "TCP" - security_group_id = each.key - cidr_blocks = var.security_group_ecs_nodes_inbound_cidrs -}