diff --git a/terraform/gcp/env/us-east/main.tf b/terraform/gcp/env/us-east/main.tf new file mode 100644 index 000000000..30ac00410 --- /dev/null +++ b/terraform/gcp/env/us-east/main.tf @@ -0,0 +1,88 @@ +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 +} + +output "hashistack_load_balancer_external_ip" { + description = "The external ip address of the HashiStack load balacner." + value = module.hashistack.load_balancer_external_ip +} + +output "manual_config_steps" { + value = <