From 737af8639c81118faddc505843dcd4d601a9ac38 Mon Sep 17 00:00:00 2001 From: nelet Date: Fri, 6 Dec 2024 15:13:35 +0100 Subject: [PATCH] inshBouddah --- tp-cloud/terraform/modules/compute/outputs.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tp-cloud/terraform/modules/compute/outputs.tf b/tp-cloud/terraform/modules/compute/outputs.tf index fdd9f61..ffd300a 100644 --- a/tp-cloud/terraform/modules/compute/outputs.tf +++ b/tp-cloud/terraform/modules/compute/outputs.tf @@ -9,4 +9,13 @@ output "instance_names" { output "frontend_public_ip" { value = google_compute_instance.frontend.network_interface[0].access_config[0].nat_ip +} + +output "private_ip" { + description = "IPs internes de toutes les instances" + 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 + } } \ No newline at end of file