From 9c02b078297e8cbb580bcc6009450e12ce62160e Mon Sep 17 00:00:00 2001 From: Vallat Date: Fri, 6 Dec 2024 14:16:05 +0100 Subject: [PATCH] network --- modules/compute/main.tf | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) 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