Update outputs for foundations/environments example (#59)
This commit is contained in:
parent
e03ceeedd1
commit
41e8e70e4f
|
@ -61,5 +61,6 @@ If no shared services are needed, the shared service project module can of cours
|
||||||
| environment_service_account_keys | Service account keys used to run each environment Terraform modules. | ✓ |
|
| environment_service_account_keys | Service account keys used to run each environment Terraform modules. | ✓ |
|
||||||
| environment_service_accounts | Service accounts used to run each environment Terraform modules. | |
|
| environment_service_accounts | Service accounts used to run each environment Terraform modules. | |
|
||||||
| environment_tf_gcs_buckets | GCS buckets used for each environment Terraform state. | |
|
| environment_tf_gcs_buckets | GCS buckets used for each environment Terraform state. | |
|
||||||
| shared_resources_project | Project that holdes resources shared across environments. | |
|
| shared_services_project | Project that holdes resources shared across environments. | |
|
||||||
|
| terraform_project | Project that holds the base Terraform resources. | |
|
||||||
<!-- END TFDOC -->
|
<!-- END TFDOC -->
|
||||||
|
|
|
@ -12,52 +12,51 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
/* output "terraform_project" {
|
output "terraform_project" {
|
||||||
description = "Project that holds the base Terraform resources."
|
description = "Project that holds the base Terraform resources."
|
||||||
value = module.project-tf.project_id
|
value = module.tf-project.project_id
|
||||||
}
|
}
|
||||||
|
|
||||||
output "bootstrap_tf_gcs_bucket" {
|
output "bootstrap_tf_gcs_bucket" {
|
||||||
description = "GCS bucket used for the bootstrap Terraform state."
|
description = "GCS bucket used for the bootstrap Terraform state."
|
||||||
value = module.gcs-tf-bootstrap.name
|
value = module.tf-gcs-bootstrap.name
|
||||||
}
|
}
|
||||||
|
|
||||||
output "environment_folders" {
|
output "environment_folders" {
|
||||||
description = "Top-level environment folders."
|
description = "Top-level environment folders."
|
||||||
value = module.folders-top-level.ids
|
value = module.environment-folders.ids
|
||||||
}
|
}
|
||||||
|
|
||||||
output "environment_tf_gcs_buckets" {
|
output "environment_tf_gcs_buckets" {
|
||||||
description = "GCS buckets used for each environment Terraform state."
|
description = "GCS buckets used for each environment Terraform state."
|
||||||
value = module.gcs-tf-environments.names
|
value = module.tf-gcs-environments.names
|
||||||
}
|
}
|
||||||
|
|
||||||
output "environment_service_account_keys" {
|
output "environment_service_account_keys" {
|
||||||
description = "Service account keys used to run each environment Terraform modules."
|
description = "Service account keys used to run each environment Terraform modules."
|
||||||
sensitive = true
|
sensitive = true
|
||||||
value = module.service-accounts-tf-environments.keys
|
value = module.tf-service-accounts.keys
|
||||||
}
|
}
|
||||||
|
|
||||||
output "environment_service_accounts" {
|
output "environment_service_accounts" {
|
||||||
description = "Service accounts used to run each environment Terraform modules."
|
description = "Service accounts used to run each environment Terraform modules."
|
||||||
value = module.service-accounts-tf-environments.emails
|
value = module.tf-service-accounts.emails
|
||||||
}
|
}
|
||||||
|
|
||||||
output "audit_logs_bq_dataset" {
|
output "audit_logs_bq_dataset" {
|
||||||
description = "Bigquery dataset for the audit logs export."
|
description = "Bigquery dataset for the audit logs export."
|
||||||
value = module.bq-audit-export.resource_name
|
value = module.audit-datasets.datasets[0].dataset_id
|
||||||
}
|
}
|
||||||
|
|
||||||
output "audit_logs_project" {
|
output "audit_logs_project" {
|
||||||
description = "Project that holds the audit logs export resources."
|
description = "Project that holds the audit logs export resources."
|
||||||
value = module.project-audit.project_id
|
value = module.audit-project.project_id
|
||||||
}
|
}
|
||||||
|
|
||||||
output "shared_resources_project" {
|
output "shared_services_project" {
|
||||||
description = "Project that holdes resources shared across environments."
|
description = "Project that holdes resources shared across environments."
|
||||||
value = module.project-shared-resources.project_id
|
value = module.sharedsvc-project.project_id
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add further outputs here for the additional modules that manage shared
|
# Add further outputs here for the additional modules that manage shared
|
||||||
# resources, like GCR, GCS buckets, KMS, etc.
|
# resources, like GCR, GCS buckets, KMS, etc.
|
||||||
*/
|
|
||||||
|
|
Loading…
Reference in New Issue