output "cloud_run_url" { value = google_cloud_run_service.contoso.status[0].url description = "The URL of the deployed Cloud Run service" } output "storage_bucket_name" { value = google_storage_bucket.app_bucket.name description = "The name of the provisioned Cloud Storage bucket" } output "firestore_database_id" { value = google_firestore_database.database.id description = "The ID of the provisioned Firestore database" } output "container_registry_url" { value = "gcr.io/${var.project_id}/contoso" description = "The URL of the Container Registry repository" } # Vector Database VM outputs output "vector_db_vm_name" { value = google_compute_instance.vector_db_vm.name description = "The name of the vector database VM" } output "vector_db_vm_external_ip" { value = google_compute_instance.vector_db_vm.network_interface[0].access_config[0].nat_ip description = "The external IP address of the vector database VM" } output "vector_db_vm_internal_ip" { value = google_compute_instance.vector_db_vm.network_interface[0].network_ip description = "The internal IP address of the vector database VM" } output "vector_db_static_ip" { value = var.use_static_ip ? google_compute_address.vector_db_static_ip[0].address : null description = "The static IP address of the vector database VM (if enabled)" } output "qdrant_http_endpoint" { value = "http://${google_compute_instance.vector_db_vm.network_interface[0].access_config[0].nat_ip}:6333" description = "The HTTP endpoint for Qdrant vector database" } output "qdrant_grpc_endpoint" { value = "http://${google_compute_instance.vector_db_vm.network_interface[0].access_config[0].nat_ip}:6334" description = "The gRPC endpoint for Qdrant vector database" } # Cloud Run environment configuration output "cloud_run_qdrant_host" { value = google_compute_instance.vector_db_vm.network_interface[0].access_config[0].nat_ip description = "The Qdrant host IP address configured for Cloud Run" } # Separate output for internal IP (useful for VPC-native connections) output "cloud_run_qdrant_host_internal" { value = google_compute_instance.vector_db_vm.network_interface[0].network_ip description = "The internal Qdrant host IP address for VPC-native connections" } output "deployment_summary" { value = { cloud_run_url = google_cloud_run_service.contoso.status[0].url qdrant_endpoint = "http://${google_compute_instance.vector_db_vm.network_interface[0].access_config[0].nat_ip}:6333" qdrant_host_ip = google_compute_instance.vector_db_vm.network_interface[0].access_config[0].nat_ip firestore_database = var.firestore_db_name storage_bucket = var.storage_bucket_name static_ip_enabled = var.use_static_ip } description = "Summary of deployed resources" }