pulumi/cmd/pulumi-test-language/testdata/l2-invoke-dependencies/main.pp

12 lines
366 B
Puppet

resource "first" "simple:index:Resource" {
value = false
}
// assert that resource second depends on resource first
// because it uses .secret from the invoke which depends on first
resource "second" "simple:index:Resource" {
value = invoke("simple-invoke:index:secretInvoke", {
value = "hello"
secretResponse = first.value
}).secret
}