Trying to write a dynamic resource with provider a...
# general
i
Trying to write a dynamic resource with provider and getting
Copy code
Plan apply failed: Program run without the `pulumi` CLI; this may not be what you want (enable PULUMI_TEST_MODE to disable this error)
in the apply phase. Is it a known issue?
w
That error message should be improved. The code inside your custom CRUD operations is run in a seperate Node process, potentially after your main application completes (or even in cases where you main program doesn't run). As a result, you cannot create new resources or call
.getFoo
-style methods inside these. Some of this is discussed in the Note at https://www.pulumi.com/docs/reference/programming-model/#dynamicproviders.
i
This helped a lot! Thanks @white-balloon-205
@white-balloon-205 For some reason some outputs in the dynamic resource are undefined, instead of being pulumi.Output<>. Any idea why that can be?
w
You might be seeing the same thing called out in https://github.com/pulumi/docs/issues/1375 which I will be adding to docs imminently.
i
@white-balloon-205 That was it! Thanks!
@white-balloon-205 I upgraded to the latest pulumi version, but there are still those permanent diffs
w
Which permanent diffs? Do you have an issue link?
i
Oh, sorry. It’s the wrong thread