Complete restructure

This commit is contained in:
gregory hendrickson
2023-03-15 13:17:41 -07:00
parent 2081f04c24
commit cf7e3c2271
22 changed files with 369 additions and 521 deletions

42
modules/instances/main.tf Normal file
View File

@@ -0,0 +1,42 @@
#BE Instance
resource "google_compute_instance" "backend" {
name = "backend"
machine_type = "n1-standard-1"
tags = ["backend"]
metadata = {
startup-script-url = "gs://${google_storage_bucket.fancy_store.name}/startup-script.sh"
}
boot_disk {
initialize_params {
image = "debian-cloud/debian-10"
}
}
network_interface {
network = "default"
}
}
#FE Instance
resource "google_compute_instance" "frontend" {
name = "frontend"
machine_type = "n1-standard-1"
tags = ["frontend"]
metadata = {
startup-script-url = "gs://${google_storage_bucket.fancy_store.name}/startup-script.sh"
}
boot_disk {
initialize_params {
image = "debian-cloud/debian-10"
}
}
network_interface {
network = "default"
}
}