diff --git a/modules/compute/main.tf b/modules/compute/main.tf index b3cd088..a9b06dc 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.subnet.id + subnetwork = google_compute_subnetwork.subnet1.id access_config {} # IP publique } @@ -35,7 +35,7 @@ resource "google_compute_instance" "vm-back" { } network_interface { - subnetwork = google_compute_subnetwork.subnet.id + subnetwork = google_compute_subnetwork.subnet2.id access_config {} # IP publique } @@ -59,7 +59,7 @@ resource "google_compute_instance" "vm-database" { } network_interface { - subnetwork = google_compute_subnetwork.subnet.id + subnetwork = google_compute_subnetwork.subnet3.id access_config {} # IP publique }