From 6b00f916e7864dc5d3870732639601bf28c4462e Mon Sep 17 00:00:00 2001 From: Vallat Date: Fri, 6 Dec 2024 15:42:38 +0100 Subject: [PATCH] compute --- 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 793128f..2fc3959 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.subnet1.id" + subnetwork = var.sub1 access_config {} # IP publique } @@ -35,7 +35,7 @@ resource "google_compute_instance" "vm-back" { } network_interface { - subnetwork = "google_compute_network.subnet2.id" + subnetwork = var.sub2 access_config {} # IP publique } @@ -59,7 +59,7 @@ resource "google_compute_instance" "vm-database" { } network_interface { - subnetwork = "google_compute_network.subnet3.id" + subnetwork = var.sub3 access_config {} # IP publique }