Skip to content

Commit

Permalink
vpc.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahim-mohamed-zaghloul committed Jul 18, 2024
1 parent 16f25d0 commit 59f5cab
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions terraform/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,12 @@ resource "aws_security_group" "security-group" {
vpc_id = aws_vpc.vpc.id
description = "Allowing SSH Access"

ingress = [
for port in [22, 8080, 9000, 9090, 80] : {
description = "TLS from VPC"
from_port = port
to_port = port
protocol = "tcp"
ipv6_cidr_blocks = ["::/0"]
self = false
prefix_list_ids = []
security_groups = []
cidr_blocks = ["0.0.0.0/0"]
}
]

ingress {
from_port = 22 #SSH
to_port = 22
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
egress {
from_port = 0
to_port = 0
Expand Down

0 comments on commit 59f5cab

Please sign in to comment.