Skip to content

Commit

Permalink
chore: remove unused security group
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloKakazu committed Sep 29, 2024
1 parent a94adbe commit bd42b2e
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit bd42b2e

Please sign in to comment.