t
This commit is contained in:
@@ -10,7 +10,7 @@ resource "google_compute_instance" "vm-front" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
network_interface {
|
network_interface {
|
||||||
subnetwork = google_compute_network.frontend.id
|
subnetwork = google_compute_network.subnet_front.id
|
||||||
access_config {} # IP publique
|
access_config {} # IP publique
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ resource "google_compute_instance" "vm-back" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
network_interface {
|
network_interface {
|
||||||
subnetwork = google_compute_network.backend.id
|
subnetwork = google_compute_network.subnet_back.id
|
||||||
access_config {} # IP publique
|
access_config {} # IP publique
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ resource "google_compute_instance" "vm-database" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
network_interface {
|
network_interface {
|
||||||
subnetwork = google_compute_network.database.id
|
subnetwork = google_compute_network.subnet_db.id
|
||||||
access_config {} # IP publique
|
access_config {} # IP publique
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
variable "instance_type" {
|
variable "instance_type" {
|
||||||
description = "type d'instance"
|
description = "type d'instance"
|
||||||
type = string
|
type = string
|
||||||
default = ""
|
default = "e2-micro"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "zone" {
|
variable "zone" {
|
||||||
|
Reference in New Issue
Block a user