2015-05-11 22:50:00 +00:00
|
|
|
//-------------------------------------------------------------------
|
|
|
|
// Vault settings
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
|
|
|
|
variable "download-url" {
|
2018-03-20 18:10:53 +00:00
|
|
|
default = "https://releases.hashicorp.com/vault/0.9.6/vault_0.9.6_linux_amd64.zip"
|
2015-05-11 22:50:00 +00:00
|
|
|
description = "URL to download Vault"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "config" {
|
|
|
|
description = "Configuration (text) for Vault"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "extra-install" {
|
|
|
|
default = ""
|
|
|
|
description = "Extra commands to run in the install script"
|
|
|
|
}
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
// AWS settings
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
|
|
|
|
variable "ami" {
|
2015-05-11 23:19:29 +00:00
|
|
|
default = "ami-7eb2a716"
|
2015-05-11 22:50:00 +00:00
|
|
|
description = "AMI for Vault instances"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "availability-zones" {
|
|
|
|
default = "us-east-1a,us-east-1b"
|
2016-07-18 23:03:04 +00:00
|
|
|
description = "Availability zones for launching the Vault instances"
|
2015-05-11 22:50:00 +00:00
|
|
|
}
|
|
|
|
|
2015-05-11 23:19:29 +00:00
|
|
|
variable "elb-health-check" {
|
|
|
|
default = "HTTP:8200/v1/sys/health"
|
|
|
|
description = "Health check for Vault servers"
|
|
|
|
}
|
|
|
|
|
2015-05-11 22:50:00 +00:00
|
|
|
variable "instance_type" {
|
|
|
|
default = "m3.medium"
|
|
|
|
description = "Instance type for Vault instances"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "key-name" {
|
|
|
|
default = "default"
|
|
|
|
description = "SSH key name for Vault instances"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "nodes" {
|
|
|
|
default = "2"
|
|
|
|
description = "number of Vault instances"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "subnets" {
|
|
|
|
description = "list of subnets to launch Vault within"
|
|
|
|
}
|
2015-05-11 23:26:25 +00:00
|
|
|
|
|
|
|
variable "vpc-id" {
|
|
|
|
description = "VPC ID"
|
|
|
|
}
|