forked from pierront/but3-iac
commit
This commit is contained in:
@@ -15,7 +15,7 @@ resource "google_compute_instance" "frontend_vm" {
|
||||
|
||||
network_interface {
|
||||
access_config {} # IP publique
|
||||
subnetwork = google_compute_subnetwork.subnet_frontend.id
|
||||
subnetwork = google_compute_network.vpc.id
|
||||
}
|
||||
|
||||
tags = ["frontend", "ssh"]
|
||||
@@ -41,7 +41,7 @@ resource "google_compute_instance" "backend_vm" {
|
||||
|
||||
network_interface {
|
||||
|
||||
subnetwork = google_compute_subnetwork.subnet_backend.id
|
||||
subnetwork = google_compute_network.vpc.id
|
||||
}
|
||||
|
||||
tags = ["backend", "ssh"]
|
||||
@@ -68,7 +68,7 @@ resource "google_compute_instance" "database_vm" {
|
||||
|
||||
network_interface {
|
||||
|
||||
subnetwork = google_compute_subnetwork.subnet_database.id
|
||||
subnetwork = google_compute_network.vpc.id
|
||||
}
|
||||
|
||||
tags = ["database", "ssh"]
|
||||
|
||||
Reference in New Issue
Block a user