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:
parent
94c14275c0
commit
a3065ff3e1
|
@ -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…
Reference in New Issue