Fix string concatenation in consul.tf

Since Terraform 0.7 doesn't support the concat() function for string
concatenation, a replacement for concat() needs to be used when
joining strings.
This commit is contained in:
Johanan Lieberman 2016-08-04 13:12:56 +00:00
parent 94c14275c0
commit a3065ff3e1
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
resource "aws_instance" "server" {
ami = "${lookup(var.ami, concat(var.region, "-", var.platform))}"
ami = "${lookup(var.ami, "${var.region}-${var.platform}")}"
instance_type = "${var.instance_type}"
key_name = "${var.key_name}"
count = "${var.servers}"