This commit is contained in:
Florian GENIQUE 2024-12-06 15:15:26 +01:00
parent 7a4925cc7b
commit de0f432aff
2 changed files with 4 additions and 4 deletions

View File

@ -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
}

View File

@ -1,7 +1,7 @@
variable "instance_type" {
description = "type d'instance"
type = string
default = ""
default = "e2-micro"
}
variable "zone" {