Skip to content

Commit

Permalink
Make the list of regions the default (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored May 17, 2024
1 parent 17f6b16 commit ce2b001
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 41 deletions.
46 changes: 5 additions & 41 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,7 @@ provider "docker" {
module "houdini" {
source = "./modules/cloudrun"

name = "houdini"
regions = [
"us-east4",
"us-east5",
"us-central1",
"us-west3",
"us-west1",
"us-west4",
]

name = "houdini"
project = var.project
containers = tolist([
{
Expand All @@ -66,16 +57,7 @@ module "houdini" {
module "homarus" {
source = "./modules/cloudrun"

name = "homarus"
regions = [
"us-east4",
"us-east5",
"us-central1",
"us-west3",
"us-west1",
"us-west4",
]

name = "homarus"
project = var.project
containers = tolist([
{
Expand All @@ -94,16 +76,7 @@ module "homarus" {
module "hypercube" {
source = "./modules/cloudrun"

name = "hypercube"
regions = [
"us-east4",
"us-east5",
"us-central1",
"us-west3",
"us-west1",
"us-west4",
]

name = "hypercube"
project = var.project
containers = tolist([
{
Expand All @@ -122,16 +95,7 @@ module "hypercube" {
module "crayfits" {
source = "./modules/cloudrun"

name = "crayfits"
regions = [
"us-east4",
"us-east5",
"us-central1",
"us-west3",
"us-west1",
"us-west4",
]

name = "crayfits"
project = var.project
containers = tolist([
{
Expand All @@ -145,4 +109,4 @@ module "crayfits" {
google = google.default
docker = docker.local
}
}
}
8 changes: 8 additions & 0 deletions modules/cloudrun/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ variable "cpu" {
variable "regions" {
type = list(string)
description = "The GCP region(s) to deploy to"
default = [
"us-east4",
"us-east5",
"us-central1",
"us-west3",
"us-west1",
"us-west4",
]
}

variable "project" {
Expand Down

0 comments on commit ce2b001

Please sign in to comment.