open-nomad/terraform/gcp/env/us-east/main.tf
Mahmood Ali 906528c197
Format Terraform files (#11099)
Also format terraform scripts with hclfmt, equivalent to terraform fmt.

I opted not to use terraform fmt, because I didn't want to introduce dev dependency on the terraform CLI.

Also, I've optimized the find command to ignore spurious directories (e.g. .git, node_modules) that seem to be populated with too many files! make hclfmt takes 0.3s on my mac down from 7 seconds!
2021-09-01 15:15:06 -04:00

51 lines
1.2 KiB
HCL

terraform {
required_version = ">= 0.12.0"
}
variable "project" {
type = string
default = ""
description = "The Google Cloud Platform project to deploy the Nomad cluster in."
}
variable "credentials" {
type = string
default = ""
description = "The path to the Google Cloud Platform credentials file (in JSON format) to use."
}
variable "region" {
type = string
default = "us-east1"
description = "The GCP region to deploy resources in."
}
variable "vm_disk_size_gb" {
description = "The GCP disk size to use both clients and servers."
default = "50"
}
variable "server_count" {
description = "The number of servers to provision."
default = "3"
}
variable "client_count" {
description = "The number of clients to provision."
default = "4"
}
provider "google" {
project = var.project
credentials = file(var.credentials)
}
module "hashistack" {
source = "../../modules/hashistack"
project = var.project
credentials = var.credentials
server_disk_size_gb = var.vm_disk_size_gb
server_count = var.server_count
client_count = var.client_count
}