2025-05-24 18:33:51 +02:00

66 lines
2.5 KiB
HCL

output "cloud_run_url" {
value = google_cloud_run_service.sereact.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}/sereact"
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.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 = var.use_static_ip ? google_compute_address.vector_db_static_ip.address : google_compute_instance.vector_db_vm.network_interface[0].access_config[0].nat_ip
description = "The Qdrant host configured for Cloud Run"
}
output "deployment_summary" {
value = {
cloud_run_url = google_cloud_run_service.sereact.status[0].url
qdrant_endpoint = "http://${google_compute_instance.vector_db_vm.network_interface[0].access_config[0].nat_ip}:6333"
firestore_database = var.firestore_db_name
storage_bucket = var.storage_bucket_name
}
description = "Summary of deployed resources"
}