mirror of
https://github.com/ghndrx/GSP662.git
synced 2026-02-10 06:54:58 +00:00
51 lines
991 B
HCL
51 lines
991 B
HCL
#BE Instance
|
|
resource "google_compute_instance" "backend" {
|
|
name = "backend"
|
|
machine_type = "n1-standard-1"
|
|
tags = ["backend"]
|
|
|
|
metadata = {
|
|
startup-script-url = "gs://${var.fancy_store_name}/startup-script.sh"
|
|
}
|
|
|
|
|
|
boot_disk {
|
|
initialize_params {
|
|
image = "debian-cloud/debian-10"
|
|
}
|
|
}
|
|
|
|
network_interface {
|
|
network = "default"
|
|
access_config {
|
|
// Assign a public (external) IP address to the instance
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
#FE Instance
|
|
resource "google_compute_instance" "frontend" {
|
|
name = "frontend"
|
|
machine_type = "n1-standard-1"
|
|
tags = ["frontend"]
|
|
|
|
metadata = {
|
|
startup-script-url = "gs://${var.fancy_store_name}/startup-script.sh"
|
|
}
|
|
|
|
boot_disk {
|
|
initialize_params {
|
|
image = "debian-cloud/debian-10"
|
|
}
|
|
}
|
|
|
|
network_interface {
|
|
network = "default"
|
|
access_config {
|
|
// Assign a public (external) IP address to the instance
|
|
|
|
}
|
|
}
|
|
}
|