Skip to content

Commit

Permalink
attempt w/ locals to avoid circular
Browse files Browse the repository at this point in the history
  • Loading branch information
GondekNP committed Jul 30, 2024
1 parent 5afa237 commit 8b4c7d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .deployment/tofu/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ locals {
aws_account_id = data.aws_caller_identity.current.account_id
aws_region = data.aws_region.current.name
oidc_provider_domain_url = "accounts.google.com"
titiler_server_endpoint = module.titiler.titiler_server_endpoint
burn_backend_server_endpoint = module.burn_backend.burn_backend_server_endpoint
}

# Initialize the modules
Expand All @@ -48,7 +50,7 @@ module "titiler" {
source = "./modules/titiler"
google_project_number = local.google_project_number
burn_backend_vpc_connector_id = module.common.burn_backend_vpc_connector_id
gcp_cloud_run_endpoint_burn_backend = module.burn_backend.burn_backend_server_endpoint
gcp_cloud_run_endpoint_burn_backend = local.burn_backend_server_endpoint
}

module "burn_backend" {
Expand All @@ -58,7 +60,7 @@ module "burn_backend" {
s3_bucket_name = module.static_io.s3_bucket_name
google_workload_identity_pool_id = module.common.google_workload_identity_pool_id
burn_backend_vpc_connector_id = module.common.burn_backend_vpc_connector_id
gcp_cloud_run_endpoint_titiler = module.titiler.titiler_server_endpoint
gcp_cloud_run_endpoint_titiler = local.titiler_server_endpoint
}


Expand Down

0 comments on commit 8b4c7d8

Please sign in to comment.