Skip to content

Commit

Permalink
Update lb.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed Jun 3, 2024
1 parent 4f08ee0 commit ced6ee5
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions terraform/environments/delius-jitbit/lb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,26 +74,6 @@ resource "aws_vpc_security_group_egress_rule" "load_balancer_egress_rule" {
cidr_ipv4 = each.value
}

resource "aws_vpc_security_group_ingress_rule" "load_balancer_ingress_rule" {
for_each = toset(local.internal_security_group_cidrs)
description = "Allow ingress from allow listed CIDRs"
security_group_id = aws_security_group.load_balancer_security_group.id
from_port = 443
to_port = 443
ip_protocol = "tcp"
cidr_ipv4 = each.value
}

resource "aws_vpc_security_group_ingress_rule" "load_balancer_ingress_rule_ipv6" {
for_each = toset(local.ipv6_cidr_blocks)
description = "Allow ingress from allow listed CIDRs"
security_group_id = aws_security_group.load_balancer_security_group.id
from_port = 443
to_port = 443
ip_protocol = "tcp"
cidr_ipv6 = each.value
}

resource "aws_lb_listener" "listener" {
load_balancer_arn = aws_lb.external.id
port = 443
Expand Down

0 comments on commit ced6ee5

Please sign in to comment.