variable changes for instance types

pull/992/head
Sathiya Shunmugasundaram 2015-06-01 01:57:18 -04:00
parent 52a15bd69e
commit f72c21a032
7 changed files with 5 additions and 9 deletions

View File

@ -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}"]

View File

@ -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" {