mirror of https://github.com/hashicorp/consul
variable changes for instance types
parent
52a15bd69e
commit
f72c21a032
|
@ -1,7 +1,6 @@
|
||||||
resource "aws_instance" "server" {
|
resource "aws_instance" "server" {
|
||||||
ami = "${lookup(var.ami, concat(var.region, "-", var.platform))}"
|
ami = "${lookup(var.ami, concat(var.region, "-", var.platform))}"
|
||||||
#ami = "${lookup(var.ami, var.region, var.platform)}"
|
instance_type = "${lookup(var.instance_type, var.platform)}"
|
||||||
instance_type = "${var.instance_type}"
|
|
||||||
key_name = "${var.key_name}"
|
key_name = "${var.key_name}"
|
||||||
count = "${var.servers}"
|
count = "${var.servers}"
|
||||||
security_groups = ["${aws_security_group.consul.name}"]
|
security_groups = ["${aws_security_group.consul.name}"]
|
||||||
|
|
|
@ -3,11 +3,6 @@ variable "platform" {
|
||||||
description = "The region of AWS, for AMI lookups."
|
description = "The region of AWS, for AMI lookups."
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "user" {
|
|
||||||
default = "ubuntu"
|
|
||||||
description = "The region of AWS, for AMI lookups."
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "user" {
|
variable "user" {
|
||||||
default = {
|
default = {
|
||||||
ubuntu = "ubuntu"
|
ubuntu = "ubuntu"
|
||||||
|
@ -43,8 +38,10 @@ variable "servers" {
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "instance_type" {
|
variable "instance_type" {
|
||||||
default = "m3.medium"
|
default = {
|
||||||
description = "The instance type to launch."
|
ubuntu = "m1.small"
|
||||||
|
rhel6 = "m3.medium"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "tagName" {
|
variable "tagName" {
|
||||||
|
|
Loading…
Reference in New Issue