merci gpt XD

This commit is contained in:
2025-12-03 16:15:42 +01:00
parent f2eef8ed81
commit 91d297cb21
9 changed files with 266 additions and 12 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 = [
google_compute_instance.frontend.name,
google_compute_instance.backend.name,
google_compute_instance.database.name
]
}