config: make the interp split pretty insane

This commit is contained in:
Mitchell Hashimoto 2014-10-09 22:45:22 -07:00
parent 539eca5ee6
commit 1ebcedb22b
4 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ import (
// InterpSplitDelim is the delimeter that is looked for to split when
// it is returned. This is a comma right now but should eventually become
// a value that a user is very unlikely to use (such as UUID).
const InterpSplitDelim = `,`
const InterpSplitDelim = `B780FFEC-B661-4EB8-9236-A01737AD98B6`
// interpRegexp is a regexp that matches interpolations such as ${foo.bar}
var interpRegexp *regexp.Regexp = regexp.MustCompile(

View File

@ -8,5 +8,5 @@ resource "aws_instance" "bar" {
}
output "foo_num" {
value = "${aws_instance.bar.*.foo}"
value = "${join(",", aws_instance.bar.*.foo)}"
}

View File

@ -6,5 +6,5 @@ resource "aws_instance" "foo" {
}
resource "aws_instance" "bar" {
foo = "${aws_instance.foo.*.foo}"
foo = "${join(",", aws_instance.foo.*.foo)}"
}

View File

@ -4,5 +4,5 @@ resource "aws_instance" "foo" {
}
resource "aws_instance" "bar" {
foo = "${aws_instance.foo.*.foo}"
foo = "${join(",", aws_instance.foo.*.foo)}"
}