Allow referencing output from test run in local variables block (tofu test) (#1254)

Signed-off-by: siddharthasonker95 <158144589+siddharthasonker95@users.noreply.github.com>
This commit is contained in:
Siddhartha Sonker
2024-02-19 15:48:56 +05:30
committed by GitHub
parent e21a14fb0c
commit accfe1c412
6 changed files with 128 additions and 17 deletions

View File

@@ -0,0 +1,4 @@
output "foo" {
description = "Output"
value = "bar"
}

View File

@@ -0,0 +1,15 @@
run "first" {
command = apply
}
run "second" {
command = plan
module {
source = "./tests/testmodule"
}
variables {
foo = run.first.foo
}
}

View File

@@ -0,0 +1,3 @@
variable "foo" {
type = string
}