From b6c35219f523573172345a82f58d2599e4fded02 Mon Sep 17 00:00:00 2001 From: nelet Date: Fri, 6 Dec 2024 15:10:53 +0100 Subject: [PATCH] inshBouddah --- tp-cloud/terraform/modules/compute/outputs.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tp-cloud/terraform/modules/compute/outputs.tf b/tp-cloud/terraform/modules/compute/outputs.tf index e69de29..fdd9f61 100644 --- a/tp-cloud/terraform/modules/compute/outputs.tf +++ b/tp-cloud/terraform/modules/compute/outputs.tf @@ -0,0 +1,12 @@ +output "instance_names" { + description = "Noms des instances" + value = { + frontend = google_compute_instance.frontend.name + backend = google_compute_instance.backend.name + database = google_compute_instance.database.name + } +} + +output "frontend_public_ip" { + value = google_compute_instance.frontend.network_interface[0].access_config[0].nat_ip +} \ No newline at end of file