Browse Source

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.
pull/2244/head
Johanan Lieberman 8 years ago
parent
commit
649326c776
  1. 2
      terraform/aws/consul.tf

2
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}"

Loading…
Cancel
Save