This commit is contained in:
Guillaume VALLAT 2024-12-06 15:42:38 +01:00
parent d4b45200d8
commit 6b00f916e7

View File

@ -10,7 +10,7 @@ resource "google_compute_instance" "vm-front" {
} }
} }
network_interface { network_interface {
subnetwork = "google_compute_network.subnet1.id" subnetwork = var.sub1
access_config {} # IP publique access_config {} # IP publique
} }
@ -35,7 +35,7 @@ resource "google_compute_instance" "vm-back" {
} }
network_interface { network_interface {
subnetwork = "google_compute_network.subnet2.id" subnetwork = var.sub2
access_config {} # IP publique access_config {} # IP publique
} }
@ -59,7 +59,7 @@ resource "google_compute_instance" "vm-database" {
} }
network_interface { network_interface {
subnetwork = "google_compute_network.subnet3.id" subnetwork = var.sub3
access_config {} # IP publique access_config {} # IP publique
} }