This commit is contained in:
ducreux
2025-12-03 16:11:01 +00:00
parent e67b5bf03c
commit 531d8d21ef
31 changed files with 3452 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
output "internal_ips" {
description = "IPs internes des instances frontend, backend et database"
value = {
frontend = google_compute_instance.frontend.network_interface[0].network_ip
backend = google_compute_instance.backend.network_interface[0].network_ip
database = google_compute_instance.database.network_interface[0].network_ip
}
}
output "frontend_public_ip" {
description = "IP publique de l'instance frontend"
value = google_compute_instance.frontend.network_interface[0].access_config[0].nat_ip
}
output "instance_names" {
description = "Noms des instances frontend, backend et database"
value = {
frontend = google_compute_instance.frontend.name
backend = google_compute_instance.backend.name
database = google_compute_instance.database.name
}
}