t
This commit is contained in:
parent
a039557abb
commit
a8cddb7868
@ -10,7 +10,7 @@ resource "google_compute_instance" "vm-front" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
network_interface {
|
network_interface {
|
||||||
subnetwork = google_compute_network.subnet_front.id
|
subnetwork = google_compute_network.frontend.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.subnet_back.id
|
subnetwork = google_compute_network.backend.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.subnet_db.id
|
subnetwork = google_compute_network.database.id
|
||||||
access_config {} # IP publique
|
access_config {} # IP publique
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,12 +1 @@
|
|||||||
# Output d'un module
|
# Output d'un module
|
||||||
output "vpc_id" {
|
|
||||||
value = google_compute_network.vpc.id
|
|
||||||
}
|
|
||||||
|
|
||||||
output "subnet_ids" {
|
|
||||||
value = {
|
|
||||||
frontend = google_compute_subnetwork.subnet_front.id,
|
|
||||||
backend = google_compute_subnetwork.subnet_back.id,
|
|
||||||
database = google_compute_subnetwork.subnet_db.id
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user