2015-06-01 01:26:50 -04:00
|
|
|
variable "platform" {
|
|
|
|
default = "ubuntu"
|
2015-06-25 08:39:22 +02:00
|
|
|
description = "The OS Platform"
|
2015-06-01 01:26:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "user" {
|
|
|
|
default = {
|
|
|
|
ubuntu = "ubuntu"
|
2015-06-01 01:43:52 -04:00
|
|
|
rhel6 = "ec2-user"
|
2015-06-02 20:57:35 -04:00
|
|
|
centos6 = "root"
|
2015-06-01 01:26:50 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-11 17:09:51 -07:00
|
|
|
variable "ami" {
|
2015-06-09 15:37:57 -07:00
|
|
|
description = "AWS AMI Id, if you change, make sure it is compatible with instance type, not all AMIs allow all instance types "
|
2014-10-11 17:09:51 -07:00
|
|
|
default = {
|
2015-06-02 15:54:08 -04:00
|
|
|
us-east-1-ubuntu = "ami-83c525e8"
|
|
|
|
us-west-2-ubuntu = "ami-57e8d767"
|
2015-06-01 01:43:52 -04:00
|
|
|
us-east-1-rhel6 = "ami-b0fed2d8"
|
|
|
|
us-west-2-rhel6 = "ami-2faa861f"
|
2015-06-02 20:57:35 -04:00
|
|
|
us-east-1-centos6 = "ami-c2a818aa"
|
|
|
|
us-west-2-centos6 = "ami-81d092b1"
|
2014-10-11 17:09:51 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "key_name" {
|
|
|
|
description = "SSH key name in your AWS account for AWS instances."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "key_path" {
|
|
|
|
description = "Path to the private key specified by key_name."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "region" {
|
|
|
|
default = "us-east-1"
|
|
|
|
description = "The region of AWS, for AMI lookups."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "servers" {
|
|
|
|
default = "3"
|
|
|
|
description = "The number of Consul servers to launch."
|
|
|
|
}
|
2015-03-14 11:00:22 -07:00
|
|
|
|
|
|
|
variable "instance_type" {
|
2015-06-02 15:54:08 -04:00
|
|
|
default = "t2.micro"
|
2015-06-09 15:37:57 -07:00
|
|
|
description = "AWS Instance type, if you change, make sure it is compatible with AMI, not all AMIs allow all instance types "
|
2015-05-09 16:50:11 -04:00
|
|
|
}
|
2015-05-31 14:00:57 -04:00
|
|
|
|
2015-05-09 16:50:11 -04:00
|
|
|
variable "tagName" {
|
|
|
|
default = "consul"
|
2015-05-13 09:59:05 -04:00
|
|
|
description = "Name tag for the servers"
|
2015-05-31 14:00:57 -04:00
|
|
|
}
|