https://pulumi.com logo
i

incalculable-diamond-5088

07/26/2019, 5:36 PM
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

white-balloon-205

07/26/2019, 5:52 PM
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

incalculable-diamond-5088

07/26/2019, 6:07 PM
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

white-balloon-205

07/26/2019, 6:37 PM
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

incalculable-diamond-5088

07/26/2019, 6:48 PM
@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

white-balloon-205

07/29/2019, 4:03 PM
Which permanent diffs? Do you have an issue link?
i

incalculable-diamond-5088

07/29/2019, 5:00 PM
Oh, sorry. It’s the wrong thread
2 Views