Skip to content

Commit 7e978b8

Browse files
authored
Merge pull request #21 from datafold/gerard-cx-2991
fix: Fixes health check and filter rule from VPCES to NLB
2 parents 055689a + 5d1c3e4 commit 7e978b8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/load_balancer/main.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ resource "aws_lb_target_group" "nlb_alb_target" {
135135
port = local.nlb_port
136136
protocol = "TCP"
137137
vpc_id = var.vpc_id
138+
139+
health_check {
140+
enabled = true
141+
protocol = "HTTPS"
142+
}
138143
}
139144

140145
resource "aws_lb" "vpces_nlb" {
@@ -185,7 +190,7 @@ resource "aws_security_group_rule" "nlb_ingress" {
185190
to_port = local.nlb_port
186191
protocol = "tcp"
187192
security_group_id = var.vpces_security_group_id
188-
cidr_blocks = [var.vpc_cidr]
193+
cidr_blocks = ["0.0.0.0/0"]
189194
description = "Allows traffic from VPCES to ALB"
190195

191196
depends_on = [

0 commit comments

Comments
 (0)