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