From 649326c776e0f6c35ac818525d90678fe4ef2974 Mon Sep 17 00:00:00 2001 From: Johanan Lieberman Date: Thu, 4 Aug 2016 13:12:56 +0000 Subject: [PATCH] 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. --- terraform/aws/consul.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/aws/consul.tf b/terraform/aws/consul.tf index 3deeb4f51c..4b2481cc77 100644 --- a/terraform/aws/consul.tf +++ b/terraform/aws/consul.tf @@ -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}"