Skip to content

Commit

Permalink
updated the security group
Browse files Browse the repository at this point in the history
  • Loading branch information
prashansa joshi committed Sep 25, 2024
1 parent db84ea5 commit 06fddd4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions terraform/sg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ resource "aws_security_group" "alb" {
cidr_blocks = ["0.0.0.0/0"]
}

# egress {
# from_port = 8080
# to_port = 8080
# protocol = "tcp"
# security_groups = [aws_security_group.eb_instances.id] # Allow traffic to EB instances on port 8080
# }

# Outbound rule to allow all traffic
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
from_port = 8080
to_port = 8080
protocol = "tcp"
security_groups = [aws_security_group.eb_instances.id] # Allow traffic to EB instances on port 8080
}

# Outbound rule to allow all traffic
# egress {
# from_port = 0
# to_port = 0
# protocol = "-1"
# cidr_blocks = ["0.0.0.0/0"]
# }
tags = module.naming.resources.alb.tags
}

Expand Down

0 comments on commit 06fddd4

Please sign in to comment.