From 7eb9af5b12dc495653e3db8d2ad39839c4df3ab0 Mon Sep 17 00:00:00 2001 From: spypsy Date: Fri, 1 Dec 2023 18:44:43 +0000 Subject: [PATCH] fix(ci): comment out lb listeners for now --- yarn-project/aztec-node/terraform/main.tf | 40 +++++++++--------- yarn-project/p2p-bootstrap/terraform/main.tf | 44 +++++++++++--------- 2 files changed, 44 insertions(+), 40 deletions(-) diff --git a/yarn-project/aztec-node/terraform/main.tf b/yarn-project/aztec-node/terraform/main.tf index c0e7a17d833..5d1b767e364 100644 --- a/yarn-project/aztec-node/terraform/main.tf +++ b/yarn-project/aztec-node/terraform/main.tf @@ -369,23 +369,23 @@ resource "aws_security_group_rule" "allow-node-tcp" { ## NLB listeners can't have a 'weight' property defined. You will see there isn't one here but that doesn't ## stop it trying to automatically specify one and giving an error -resource "aws_lb_listener" "aztec-node-tcp-listener" { - count = local.node_count - load_balancer_arn = data.terraform_remote_state.aztec-network_iac.outputs.nlb_arn - port = var.NODE_TCP_PORT + count.index - protocol = "TCP" - - tags = { - name = "aztec-node-${count.index}-tcp-listener" - } - - default_action { - type = "forward" - - forward { - target_group { - arn = aws_lb_target_group.aztec-bootstrap-target-group[count.index].arn - } - } - } -} +# resource "aws_lb_listener" "aztec-node-tcp-listener" { +# count = local.node_count +# load_balancer_arn = data.terraform_remote_state.aztec-network_iac.outputs.nlb_arn +# port = var.NODE_TCP_PORT + count.index +# protocol = "TCP" + +# tags = { +# name = "aztec-node-${count.index}-tcp-listener" +# } + +# default_action { +# type = "forward" + +# forward { +# target_group { +# arn = aws_lb_target_group.aztec-bootstrap-target-group[count.index].arn +# } +# } +# } +# } diff --git a/yarn-project/p2p-bootstrap/terraform/main.tf b/yarn-project/p2p-bootstrap/terraform/main.tf index 311c9b9b241..79d31f476cd 100644 --- a/yarn-project/p2p-bootstrap/terraform/main.tf +++ b/yarn-project/p2p-bootstrap/terraform/main.tf @@ -223,23 +223,27 @@ resource "aws_security_group_rule" "allow-bootstrap-tcp" { security_group_id = data.terraform_remote_state.aztec-network_iac.outputs.p2p_security_group_id } -resource "aws_lb_listener" "aztec-bootstrap-tcp-listener" { - count = local.bootnode_count - load_balancer_arn = data.terraform_remote_state.aztec-network_iac.outputs.nlb_arn - port = var.BOOTNODE_LISTEN_PORT + count.index - protocol = "TCP" - - tags = { - name = "aztec-bootstrap-${count.index}-target-group" - } - - default_action { - type = "forward" - - forward { - target_group { - arn = aws_lb_target_group.aztec-bootstrap-target-group[count.index].arn - } - } - } -} +## Commented out here and setup manually as terraform (or the aws provider version we are using) has a bug +## NLB listeners can't have a 'weight' property defined. You will see there isn't one here but that doesn't +## stop it trying to automatically specify one and giving an error + +# resource "aws_lb_listener" "aztec-bootstrap-tcp-listener" { +# count = local.bootnode_count +# load_balancer_arn = data.terraform_remote_state.aztec-network_iac.outputs.nlb_arn +# port = var.BOOTNODE_LISTEN_PORT + count.index +# protocol = "TCP" + +# tags = { +# name = "aztec-bootstrap-${count.index}-target-group" +# } + +# default_action { +# type = "forward" + +# forward { +# target_group { +# arn = aws_lb_target_group.aztec-bootstrap-target-group[count.index].arn +# } +# } +# } +# }