From 2a38788ee7857162a9af391323f53187e670dedc Mon Sep 17 00:00:00 2001 From: spypsy Date: Fri, 1 Dec 2023 18:14:03 +0000 Subject: [PATCH] fix(ci): count for bootnode discovery service (#3517) Please provide a paragraph or two giving a summary of the change, including relevant motivation and context. # Checklist: Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge. - [ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag. - [ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code. - [ ] Every change is related to the PR description. - [ ] I have [linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this pull request to relevant issues (if any exist). --- yarn-project/p2p-bootstrap/terraform/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yarn-project/p2p-bootstrap/terraform/main.tf b/yarn-project/p2p-bootstrap/terraform/main.tf index 311c9b9b241..35462c6c24d 100644 --- a/yarn-project/p2p-bootstrap/terraform/main.tf +++ b/yarn-project/p2p-bootstrap/terraform/main.tf @@ -61,7 +61,8 @@ resource "aws_cloudwatch_log_group" "aztec-bootstrap-log-group" { } resource "aws_service_discovery_service" "aztec-bootstrap" { - name = "${var.DEPLOY_TAG}-aztec-bootstrap-${count.index + 1}" + count = local.bootnode_count + name = "${var.DEPLOY_TAG}-aztec-bootstrap-${count.index + 1}" health_check_custom_config { failure_threshold = 1