mirror of
https://github.com/ghndrx/GSP662.git
synced 2026-02-10 06:54:58 +00:00
Complete restructure
This commit is contained in:
42
modules/instances/main.tf
Normal file
42
modules/instances/main.tf
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user