Skip to content

Commit

Permalink
Fix string concatenation in consul.tf
Browse files Browse the repository at this point in the history
Since Terraform 0.7 doesn't support the concat() function for string
concatenation, a replacement for concat() needs to be used when
joining strings.
  • Loading branch information
johananl committed Aug 4, 2016
1 parent 6a30762 commit 649326c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/aws/consul.tf
Original file line number Diff line number Diff line change
@@ -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}"
Expand Down

0 comments on commit 649326c

Please sign in to comment.