From 16c02fc96650dc836bba640697282dea8e1d7122 Mon Sep 17 00:00:00 2001 From: Kara Moscoe Date: Thu, 19 Dec 2024 15:05:00 -0800 Subject: [PATCH] fix locals file --- deploy/terraform-custom-datacommons/modules/locals.tf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/deploy/terraform-custom-datacommons/modules/locals.tf b/deploy/terraform-custom-datacommons/modules/locals.tf index b7256626ee..050e7374d1 100644 --- a/deploy/terraform-custom-datacommons/modules/locals.tf +++ b/deploy/terraform-custom-datacommons/modules/locals.tf @@ -25,10 +25,16 @@ locals { # Use var.billing_project_id if set, otherwise use project_id for billing billing_project_id = var.billing_project_id != null ? var.billing_project_id : var.project_id + + # Data Commons API hostname + dc_api_hostname = "api.datacommons.org" - # Data Commons API root url - dc_api_root = "${var.dc_api_protocol}://${var.dc_api_hostname}" + # Data Commons API protocol + dc_api_protocol = "https" + # Data Commons API root url + dc_api_root = "${local.dc_api_protocol}://${local.dc_api_hostname}" + # Shared environment variables used by the Data Commons web service and the Data # Commons data loading job cloud_run_shared_env_variables = [