config: make the interp split pretty insane
This commit is contained in:
parent
539eca5ee6
commit
1ebcedb22b
|
@ -12,7 +12,7 @@ import (
|
||||||
// InterpSplitDelim is the delimeter that is looked for to split when
|
// InterpSplitDelim is the delimeter that is looked for to split when
|
||||||
// it is returned. This is a comma right now but should eventually become
|
// 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).
|
// 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}
|
// interpRegexp is a regexp that matches interpolations such as ${foo.bar}
|
||||||
var interpRegexp *regexp.Regexp = regexp.MustCompile(
|
var interpRegexp *regexp.Regexp = regexp.MustCompile(
|
||||||
|
|
|
@ -8,5 +8,5 @@ resource "aws_instance" "bar" {
|
||||||
}
|
}
|
||||||
|
|
||||||
output "foo_num" {
|
output "foo_num" {
|
||||||
value = "${aws_instance.bar.*.foo}"
|
value = "${join(",", aws_instance.bar.*.foo)}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,5 +6,5 @@ resource "aws_instance" "foo" {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_instance" "bar" {
|
resource "aws_instance" "bar" {
|
||||||
foo = "${aws_instance.foo.*.foo}"
|
foo = "${join(",", aws_instance.foo.*.foo)}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,5 +4,5 @@ resource "aws_instance" "foo" {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_instance" "bar" {
|
resource "aws_instance" "bar" {
|
||||||
foo = "${aws_instance.foo.*.foo}"
|
foo = "${join(",", aws_instance.foo.*.foo)}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue