github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/terraform/gcp/env/us-east/main.tf (about)

     1  terraform {
     2    required_version = ">= 0.12.0"
     3  }
     4  
     5  variable "project" {
     6    type        = string
     7    default     = ""
     8    description = "The Google Cloud Platform project to deploy the Nomad cluster in."
     9  }
    10  
    11  variable "credentials" {
    12    type        = string
    13    default     = ""
    14    description = "The path to the Google Cloud Platform credentials file (in JSON format) to use."
    15  }
    16  
    17  variable "region" {
    18      type        = string
    19      default     = "us-east1"
    20      description = "The GCP region to deploy resources in."
    21  }
    22  
    23  variable "vm_disk_size_gb" {
    24    description = "The GCP disk size to use both clients and servers."
    25    default     = "50"
    26  }
    27  
    28  variable "server_count" {
    29    description = "The number of servers to provision."
    30    default     = "3"
    31  }
    32  
    33  variable "client_count" {
    34    description = "The number of clients to provision."
    35    default     = "4"
    36  }
    37  
    38  provider "google" {
    39      project     = var.project
    40      credentials = file(var.credentials)
    41  }
    42  
    43  module "hashistack" {
    44    source              = "../../modules/hashistack"
    45    project             = var.project
    46    credentials         = var.credentials
    47    server_disk_size_gb = var.vm_disk_size_gb
    48    server_count        = var.server_count
    49    client_count        = var.client_count
    50  }