mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-28 09:11:18 +00:00
- add support to provision VMs on googlecloud - refactor the way we define the project used by Terraform (we'll now use the GOOGLE_PROJECT environment variable, and if it's not set, we'll set it automatically by getting the default project from the gcloud CLI)
17 lines
312 B
HCL
17 lines
312 B
HCL
variable "node_sizes" {
|
|
type = map(string)
|
|
default = {
|
|
"S" = "e2-small"
|
|
"M" = "e2-medium"
|
|
"L" = "e2-standard-2"
|
|
}
|
|
}
|
|
|
|
variable "location" {
|
|
type = string
|
|
default = "europe-north1-a"
|
|
}
|
|
|
|
locals {
|
|
location = (var.location != "" && var.location != null) ? var.location : "europe-north1-a"
|
|
} |