From 058c767829df396d79f7b8ac91c9a66b2fb408ef Mon Sep 17 00:00:00 2001 From: Vallat Date: Fri, 6 Dec 2024 14:13:13 +0100 Subject: [PATCH] network --- modules/compute/main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/compute/main.tf b/modules/compute/main.tf index a9b06dc..2e7d2c6 100644 --- a/modules/compute/main.tf +++ b/modules/compute/main.tf @@ -11,7 +11,7 @@ resource "google_compute_instance" "vm-front" { } network_interface { - subnetwork = google_compute_subnetwork.subnet1.id + subnetwork = google_compute_network.subnet1.id access_config {} # IP publique } @@ -35,7 +35,7 @@ resource "google_compute_instance" "vm-back" { } network_interface { - subnetwork = google_compute_subnetwork.subnet2.id + subnetwork = google_compute_network.subnet2.id access_config {} # IP publique } @@ -59,7 +59,7 @@ resource "google_compute_instance" "vm-database" { } network_interface { - subnetwork = google_compute_subnetwork.subnet3.id + subnetwork = google_compute_network.subnet3.id access_config {} # IP publique }