29e9909c74
Details: * Adds an input variable to the consul terraform template module to allow a user of the module to specify a different AWS instance type to launch. * The default is still "m1.small". * The module input variable is named "instance_type".
29 lines
610 B
HCL
29 lines
610 B
HCL
variable "ami" {
|
|
default = {
|
|
us-east-1 = "ami-3acc7a52"
|
|
us-west-2 = "ami-37501207"
|
|
}
|
|
}
|
|
|
|
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."
|
|
}
|
|
|
|
variable "instance_type" {
|
|
default = "m1.small"
|
|
description = "The instance type to launch."
|
|
} |