mirror of https://github.com/hashicorp/terraform
Add test attempting to reproduce #2598
This attempts to reproduce the issue described in #2598 whereby outputs added after an apply are not reflected in the output. As per the issue the outputs are described using the JSON syntax.pull/3831/head
parent
deb17b90eb
commit
2a0334125c
@ -0,0 +1,6 @@
|
||||
provider "aws" {}
|
||||
|
||||
resource "aws_instance" "test" {
|
||||
foo = "${format("foo%d", count.index)}"
|
||||
count = 2
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"output": {
|
||||
"firstOutput": {
|
||||
"value": "${aws_instance.test.0.foo}"
|
||||
},
|
||||
"secondOutput": {
|
||||
"value": "${aws_instance.test.1.foo}"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
provider "aws" {}
|
||||
|
||||
resource "aws_instance" "test" {
|
||||
foo = "${format("foo%d", count.index)}"
|
||||
count = 2
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
{
|
||||
"output": {
|
||||
"firstOutput": {
|
||||
"value": "${aws_instance.test.0.foo}"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue