From a8cddb78680c8e8e530bf1d41eed51139343756b Mon Sep 17 00:00:00 2001 From: genique Date: Fri, 6 Dec 2024 15:07:16 +0100 Subject: [PATCH] t --- modules/compute/main.tf | 6 +++--- modules/network/outputs.tf | 11 ----------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/modules/compute/main.tf b/modules/compute/main.tf index dca8f2a..ef8bf19 100644 --- a/modules/compute/main.tf +++ b/modules/compute/main.tf @@ -10,7 +10,7 @@ resource "google_compute_instance" "vm-front" { } } network_interface { - subnetwork = google_compute_network.subnet_front.id + subnetwork = google_compute_network.frontend.id access_config {} # IP publique } @@ -35,7 +35,7 @@ resource "google_compute_instance" "vm-back" { } network_interface { - subnetwork = google_compute_network.subnet_back.id + subnetwork = google_compute_network.backend.id access_config {} # IP publique } @@ -59,7 +59,7 @@ resource "google_compute_instance" "vm-database" { } network_interface { - subnetwork = google_compute_network.subnet_db.id + subnetwork = google_compute_network.database.id access_config {} # IP publique } diff --git a/modules/network/outputs.tf b/modules/network/outputs.tf index cf7c773..e763f74 100644 --- a/modules/network/outputs.tf +++ b/modules/network/outputs.tf @@ -1,12 +1 @@ # Output d'un module -output "vpc_id" { - value = google_compute_network.vpc.id -} - -output "subnet_ids" { - value = { - frontend = google_compute_subnetwork.subnet_front.id, - backend = google_compute_subnetwork.subnet_back.id, - database = google_compute_subnetwork.subnet_db.id - } -} \ No newline at end of file