mirror of
https://github.com/ghndrx/GSP662.git
synced 2026-02-10 15:04:57 +00:00
add modules
This commit is contained in:
26
main.tf
26
main.tf
@@ -9,4 +9,30 @@ module "storage" {
|
|||||||
module "instance" {
|
module "instance" {
|
||||||
source = "./modules/instances"
|
source = "./modules/instances"
|
||||||
fancy_store_name = module.storage.fancy_store_name
|
fancy_store_name = module.storage.fancy_store_name
|
||||||
|
}
|
||||||
|
|
||||||
|
module "healthchecks" {
|
||||||
|
source = "./modules/network/healthchecks"
|
||||||
|
}
|
||||||
|
|
||||||
|
module "firewall" {
|
||||||
|
source = "./modules/network/firewall"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
module "loadbalancer" {
|
||||||
|
source = "./modules/network/loadbalancer"
|
||||||
|
}
|
||||||
|
|
||||||
|
module "network" {
|
||||||
|
source = "./modules/network"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
module "instance-group" {
|
||||||
|
source = "./modules/instance-group"
|
||||||
|
}
|
||||||
|
|
||||||
|
module "autoscale" {
|
||||||
|
source = "./modules/autoscale"
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,7 @@ resource "google_compute_instance_group_manager" "fancy_fe_mig" {
|
|||||||
google_compute_target_pool.fancy_target_pool.self_link
|
google_compute_target_pool.fancy_target_pool.self_link
|
||||||
]
|
]
|
||||||
|
|
||||||
zone = "us-central1-a"
|
zone = "us-central1-f"
|
||||||
|
|
||||||
update_policy {
|
update_policy {
|
||||||
type = "PROACTIVE"
|
type = "PROACTIVE"
|
||||||
@@ -37,7 +37,7 @@ resource "google_compute_instance_group_manager" "fancy_be_mig" {
|
|||||||
google_compute_target_pool.fancy_target_pool.self_link
|
google_compute_target_pool.fancy_target_pool.self_link
|
||||||
]
|
]
|
||||||
|
|
||||||
zone = "us-central1-a"
|
zone = "us-central1-f"
|
||||||
|
|
||||||
update_policy {
|
update_policy {
|
||||||
type = "PROACTIVE"
|
type = "PROACTIVE"
|
||||||
|
|||||||
Reference in New Issue
Block a user