4-projects/ml_business_unit/shared/outputs.tf (82 lines of code) (raw):

/** * Copyright 2021 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. */ output "default_region" { description = "Default region to create resources where applicable." value = try(module.infra_pipelines[0].default_region, "") } output "cloudbuild_project_id" { value = try(module.app_infra_cloudbuild_project[0].project_id, "") } output "terraform_service_accounts" { description = "APP Infra Pipeline Terraform Accounts." value = try(module.infra_pipelines[0].terraform_service_accounts, {}) } output "repos" { description = "CSRs to store source code" value = try(module.infra_pipelines[0].repos, toset([])) } output "artifact_buckets" { description = "GCS Buckets to store Cloud Build Artifacts" value = try(module.infra_pipelines[0].artifact_buckets, {}) } output "state_buckets" { description = "GCS Buckets to store TF state" value = try(module.infra_pipelines[0].state_buckets, {}) } output "log_buckets" { description = "GCS Buckets to store Cloud Build logs" value = try(module.infra_pipelines[0].log_buckets, {}) } output "plan_triggers_id" { description = "CB plan triggers" value = try(module.infra_pipelines[0].plan_triggers_id, []) } output "apply_triggers_id" { description = "CB apply triggers" value = try(module.infra_pipelines[0].apply_triggers_id, []) } output "enable_cloudbuild_deploy" { description = "Enable infra deployment using Cloud Build." value = local.enable_cloudbuild_deploy } output "service_catalog_project_id" { description = "Service Catalog Project ID." value = module.ml_infra_projects.service_catalog_project_id } output "common_artifacts_project_id" { description = "App Infra Artifacts Project ID" value = module.ml_infra_projects.common_artifacts_project_id } output "service_catalog_repo_name" { description = "The name of the Service Catalog repository" value = module.ml_infra_projects.service_catalog_repo_name } output "service_catalog_repo_id" { description = "ID of the Service Catalog repository" value = module.ml_infra_projects.service_catalog_repo_id } output "artifacts_repo_name" { description = "The name of the Artifacts repository" value = module.ml_infra_projects.artifacts_repo_name } output "artifacts_repo_id" { description = "ID of the Artifacts repository" value = module.ml_infra_projects.artifacts_repo_id } output "shared_level_keyrings" { description = "Keyrings used on shared level project creation" value = local.shared_kms_key_ring }