From 71cac63f2897ea6221e33ca6a657fd71b6c6f3cd Mon Sep 17 00:00:00 2001 From: Omar Khawaja Date: Fri, 25 Oct 2019 14:15:30 -0400 Subject: [PATCH] separate vars and outputs into their own files and update default link in nomad binary variable to 0.10.0 release (#6550) --- terraform/aws/env/us-east/main.tf | 96 ---------------------- terraform/aws/env/us-east/outputs.tf | 33 ++++++++ terraform/aws/env/us-east/terraform.tfvars | 2 +- terraform/aws/env/us-east/variables.tf | 60 ++++++++++++++ 4 files changed, 94 insertions(+), 97 deletions(-) create mode 100644 terraform/aws/env/us-east/outputs.tf create mode 100644 terraform/aws/env/us-east/variables.tf diff --git a/terraform/aws/env/us-east/main.tf b/terraform/aws/env/us-east/main.tf index 448995039..c0ff3cfc3 100644 --- a/terraform/aws/env/us-east/main.tf +++ b/terraform/aws/env/us-east/main.tf @@ -1,64 +1,3 @@ -variable "name" { - description = "Used to name various infrastructure components" -} - -variable "whitelist_ip" { - description = "IP to whitelist for the security groups (set 0.0.0.0/0 for world)" -} - -variable "region" { - description = "The AWS region to deploy to." - default = "us-east-1" -} - -variable "ami" { -} - -variable "server_instance_type" { - description = "The AWS instance type to use for servers." - default = "t2.medium" -} - -variable "client_instance_type" { - description = "The AWS instance type to use for clients." - default = "t2.medium" -} - -variable "root_block_device_size" { - description = "The volume size of the root block device." - default = 16 -} - -variable "key_name" { - description = "Name of the SSH key used to provision EC2 instances." -} - -variable "server_count" { - description = "The number of servers to provision." - default = "3" -} - -variable "client_count" { - description = "The number of clients to provision." - default = "4" -} - -variable "retry_join" { - description = "Used by Consul to automatically form a cluster." - type = map(string) - - default = { - provider = "aws" - tag_key = "ConsulAutoJoin" - tag_value = "auto-join" - } -} - -variable "nomad_binary" { - description = "Used to replace the machine image installed Nomad binary." - default = "none" -} - provider "aws" { region = var.region } @@ -79,38 +18,3 @@ module "hashistack" { root_block_device_size = var.root_block_device_size whitelist_ip = var.whitelist_ip } - -output "IP_Addresses" { - value = <