diff --git a/terraform/aws/consul.tf b/terraform/aws/consul.tf index 977f00acca..f5e6fc91c6 100644 --- a/terraform/aws/consul.tf +++ b/terraform/aws/consul.tf @@ -1,6 +1,6 @@ resource "aws_instance" "server" { ami = "${lookup(var.ami, var.region)}" - instance_type = "m1.small" + instance_type = "${var.instance_type}" key_name = "${var.key_name}" count = "${var.servers}" security_groups = ["${aws_security_group.consul.name}"] diff --git a/terraform/aws/variables.tf b/terraform/aws/variables.tf index a065dbceec..35d16d7ad6 100644 --- a/terraform/aws/variables.tf +++ b/terraform/aws/variables.tf @@ -22,3 +22,8 @@ variable "servers" { default = "3" description = "The number of Consul servers to launch." } + +variable "instance_type" { + default = "m1.small" + description = "The instance type to launch." +} \ No newline at end of file