diff --git a/modules/compute/main.tf b/modules/compute/main.tf index f5396b5..1988fb1 100644 --- a/modules/compute/main.tf +++ b/modules/compute/main.tf @@ -9,19 +9,20 @@ resource "google_compute_instance" "vm-front" { size = 10 } } - - network_interface { - network = google_compute_network.subnet1.id - access_config {} # IP publique - } - - tags = ["web", "ssh"] - - metadata = { - enable-oslogin = "TRUE" - } } +network_interface { + network = google_compute_network.subnet1.id + access_config {} # IP publique +} + +tags = ["web", "ssh"] + +metadata = { + enable-oslogin = "TRUE" +} + + resource "google_compute_instance" "vm-back" { name = "vm-back" machine_type = var.instance_type