Skip to content

Commit

Permalink
security groups for LB (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
eedygreen authored Jul 31, 2024
1 parent 4f3efbf commit f5509b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions relayers/nlb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resource "aws_lb" "main" {
internal = var.is_lb_internal
load_balancer_type = "network"
subnets = data.aws_subnets.ec2_public_subnets.ids
security_groups = [aws_security_group.lb.id]
enable_cross_zone_load_balancing = true
enable_deletion_protection = var.lb_delete_protection
}
Expand Down
8 changes: 0 additions & 8 deletions relayers/security_groups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ resource "aws_security_group" "lb" {
name = "${var.project_name}-sg-alb-${var.app_tag}"
vpc_id = data.aws_vpc.vpc.id

ingress {
protocol = "tcp"
from_port = 80
to_port = 80
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}

ingress {
protocol = "tcp"
from_port = 443
Expand Down

0 comments on commit f5509b8

Please sign in to comment.