diff --git a/modules/compute/main.tf b/modules/compute/main.tf index ef8bf19..dca8f2a 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.frontend.id + subnetwork = google_compute_network.subnet_front.id access_config {} # IP publique } @@ -35,7 +35,7 @@ resource "google_compute_instance" "vm-back" { } network_interface { - subnetwork = google_compute_network.backend.id + subnetwork = google_compute_network.subnet_back.id access_config {} # IP publique } @@ -59,7 +59,7 @@ resource "google_compute_instance" "vm-database" { } network_interface { - subnetwork = google_compute_network.database.id + subnetwork = google_compute_network.subnet_db.id access_config {} # IP publique } diff --git a/modules/compute/variables.tf b/modules/compute/variables.tf index 6aa61f6..dc3c944 100644 --- a/modules/compute/variables.tf +++ b/modules/compute/variables.tf @@ -1,7 +1,7 @@ variable "instance_type" { description = "type d'instance" type = string - default = "" + default = "e2-micro" } variable "zone" {