Files
smom-dbis-138/terraform/multi-cloud/modules/gcp/outputs.tf

40 lines
1018 B
Terraform
Raw Normal View History

# Outputs for GCP Module
output "vpc_id" {
value = google_compute_network.main.id
description = "VPC network ID"
}
output "cluster_name" {
value = google_container_cluster.main.name
description = "GKE cluster name"
}
output "cluster_endpoint" {
value = google_container_cluster.main.endpoint
description = "GKE cluster endpoint"
sensitive = true
}
output "cluster_ca_certificate" {
value = google_container_cluster.main.master_auth[0].cluster_ca_certificate
description = "GKE cluster CA certificate"
sensitive = true
}
output "subnet_ids" {
value = {
gke = [for s in google_compute_subnetwork.gke : s.id]
validators = [for s in google_compute_subnetwork.validators : s.id]
rpc = [for s in google_compute_subnetwork.rpc : s.id]
}
description = "Subnet IDs by type"
}
output "kubeconfig" {
value = null # Will be generated by external data source or script
description = "Kubeconfig for the cluster"
sensitive = true
}