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 06fddd4 commit 1109480
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions terraform/sg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ resource "aws_security_group" "alb" {
}

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
from_port = 8080
to_port = 8080
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
# security_groups = [aws_security_group.eb_instances.id] # Allow traffic to EB instances on port 8080
}

# Outbound rule to allow all traffic
Expand Down

0 comments on commit 1109480

Please sign in to comment.