From 20b77a027e549e153e765230423254e66b00cee1 Mon Sep 17 00:00:00 2001 From: Vincent Chau <99756290+vincentwschau@users.noreply.github.com> Date: Fri, 27 Oct 2023 17:47:42 -0400 Subject: [PATCH] Address comments, fix lint. --- indexer/ecr.tf | 2 +- indexer/locals.tf | 2 +- indexer/variables.tf | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/indexer/ecr.tf b/indexer/ecr.tf index abc92c5f..4cb37c00 100644 --- a/indexer/ecr.tf +++ b/indexer/ecr.tf @@ -96,7 +96,7 @@ data "aws_ecr_repository" "full_node_ap_northeast_1" { name = var.full_node_ecr_repository_name } -data "aws_ecr_repository" "snapshot_ful_node_ap_northeast_1" { +data "aws_ecr_repository" "snapshot_full_node_ap_northeast_1" { count = var.environment == "mainnet" ? 1 : 0 name = var.snapshot_full_node_ecr_repository_name } diff --git a/indexer/locals.tf b/indexer/locals.tf index d7130ce2..a48f3851 100644 --- a/indexer/locals.tf +++ b/indexer/locals.tf @@ -307,5 +307,5 @@ locals { locals { node_ecr_repository_url = var.environment == "mainnet" ? data.aws_ecr_repository.full_node_ap_northeast_1[0].repository_url : data.aws_ecr_repository.full_node_us_east_2[0].repository_url - snapshot_node_ecr_repository_url = var.environment == "mainnet" ? data.aws_ecr_repository.snapshot_ful_node_ap_northeast_1[0].repository_url : data.aws_ecr_repository.snapshot_full_node_us_east_2[0].repository_url + snapshot_node_ecr_repository_url = var.environment == "mainnet" ? data.aws_ecr_repository.snapshot_full_node_ap_northeast_1[0].repository_url : data.aws_ecr_repository.snapshot_full_node_us_east_2[0].repository_url } diff --git a/indexer/variables.tf b/indexer/variables.tf index 6bef497e..57ff5d03 100644 --- a/indexer/variables.tf +++ b/indexer/variables.tf @@ -429,7 +429,7 @@ variable "vulcan_ecs_environment_variables" { } variable "public_access" { - type = bool + type = bool description = "Enables public access of the indexer endpoints." - default = true + default = true }