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 6a30762965
commit 649326c776

@ -1,5 +1,5 @@
resource "aws_instance" "server" { 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}" instance_type = "${var.instance_type}"
key_name = "${var.key_name}" key_name = "${var.key_name}"
count = "${var.servers}" count = "${var.servers}"

Loading…
Cancel
Save