diff --git a/environments/dev/main.tf b/environments/dev/main.tf index fb34201..b37c3bf 100644 --- a/environments/dev/main.tf +++ b/environments/dev/main.tf @@ -26,15 +26,6 @@ module "network" { ssh_source_ranges = var.ssh_source_ranges } -/*module "iam" { - source = "../../modules/iam" - - # Variables d'entrée - - - # Autres variables spécifiques au module -} - module "compute" { source = "../../modules/compute" @@ -43,4 +34,15 @@ module "compute" { # Autres variables spécifiques au module zone = var.zone instance_type = var.instance_type -}*/ \ No newline at end of file +} + + +/*module "iam" { + source = "../../modules/iam" + + # Variables d'entrée + + + # Autres variables spécifiques au module +} +*/ \ No newline at end of file diff --git a/modules/compute/main.tf b/modules/compute/main.tf index fda898c..8bbb7fd 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.subnet1.id + subnetwork = "google_compute_network.subnet1.id" access_config {} # IP publique } @@ -35,7 +35,7 @@ resource "google_compute_instance" "vm-back" { } network_interface { - subnetwork = google_compute_network.subnet2.id + subnetwork = "google_compute_network.subnet2.id" access_config {} # IP publique } @@ -59,7 +59,7 @@ resource "google_compute_instance" "vm-database" { } network_interface { - subnetwork = google_compute_network.subnet3.id + subnetwork = "google_compute_network.subnet3.id" access_config {} # IP publique }