Partie 1 + moitié partie 2

This commit is contained in:
gentil
2025-12-04 07:54:45 +00:00
parent e67b5bf03c
commit e7e0840e6a
20 changed files with 1064 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
output "internal_ips" {
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" {
value = google_compute_instance.frontend.network_interface[0].access_config[0].nat_ip
}
output "instance_names" {
value = {
frontend = google_compute_instance.frontend.name
backend = google_compute_instance.backend.name
database = google_compute_instance.database.name
}
}