3-fleetscope/envs/production/remote.tf (29 lines of code) (raw):

/** * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ locals { fleet_project_id = data.terraform_remote_state.multitenant.outputs.fleet_project_id cluster_project_id = data.terraform_remote_state.multitenant.outputs.cluster_project_id network_project_id = data.terraform_remote_state.multitenant.outputs.network_project_id cluster_membership_ids = data.terraform_remote_state.multitenant.outputs.cluster_membership_ids cluster_service_accounts = data.terraform_remote_state.multitenant.outputs.cluster_service_accounts } data "terraform_remote_state" "multitenant" { backend = "gcs" config = { bucket = var.remote_state_bucket prefix = "terraform/multi_tenant/${local.env}" } }