From de0f432affd5e2fedeb6682f833bf8270cfb790d Mon Sep 17 00:00:00 2001
From: genique <florian.genique@etu.u-pec.fr>
Date: Fri, 6 Dec 2024 15:15:26 +0100
Subject: [PATCH] t

---
 modules/compute/main.tf      | 6 +++---
 modules/compute/variables.tf | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

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" {