From bd42b2e46f796d01d0b4c05aa302eb86b8a2b909 Mon Sep 17 00:00:00 2001 From: Murilo Kakazu Date: Sun, 29 Sep 2024 13:35:16 -0300 Subject: [PATCH] chore: remove unused security group --- main.tf | 55 ------------------------------------------------------- 1 file changed, 55 deletions(-) diff --git a/main.tf b/main.tf index 6b0d638..c175bb4 100644 --- a/main.tf +++ b/main.tf @@ -123,58 +123,3 @@ resource "aws_route_table_association" "private_subnet_3_assoc" { subnet_id = aws_subnet.subnet_3.id route_table_id = aws_route_table.private_route_table.id } - -resource "aws_security_group" "default_security_group" { - vpc_id = aws_vpc.main.id - - // Allow all ports access between nodes - ingress { - from_port = 0 - to_port = 65535 - protocol = "tcp" - cidr_blocks = [aws_vpc.main.cidr_block] - } - - // Allow SSH access to the nodes - // ingress { - // from_port = 22 - // to_port = 22 - // protocol = "tcp" - // cidr_blocks = ["0.0.0.0/0"] - // } - - // Allow public https access - ingress { - from_port = 443 - to_port = 443 - protocol = "tcp" - cidr_blocks = ["0.0.0.0/0"] - } - - // Allow public http access - ingress { - from_port = 80 - to_port = 80 - protocol = "tcp" - cidr_blocks = ["0.0.0.0/0"] - } - - // Allowpublic custom application ports - ingress { - from_port = 30000 - to_port = 30100 - protocol = "tcp" - cidr_blocks = ["0.0.0.0/0"] - } - - egress { - from_port = 0 - to_port = 0 - protocol = "-1" - cidr_blocks = ["0.0.0.0/0"] -} - - tags = { - Name = "default_security_group" - } -} \ No newline at end of file