https://pulumi.com logo
#general
Title
# general
r

rapid-eye-32575

04/17/2019, 2:36 PM
Does anybody know if there currently is a mechanism to refresh custom dynamic providers that were serialized as part of a stack? I have an error in a delete function and would like to fix it without having to delete everything manually...
w

white-balloon-205

04/17/2019, 3:29 PM
I don't believe there is any automatic refresh. What happens when you try to fix the delete function and then
update
? That should in principle get you into a state where you can then remove the resources or
destroy
to invoke the new delete function. But there may be more subtleties there.
r

rapid-eye-32575

04/17/2019, 3:33 PM
In the meantime I just removed the resources from the stack file and reimported it and then removed the corresping objects manually. I'd imagine that fixing the function in the stack file would work, but since it seems to be compiled javascript instead of typescript that wouldn't really be a smooth and simple workflow either 😉
w

white-balloon-205

04/17/2019, 3:37 PM
Glad you found a way to get unblocked! As I noted in another thread just now - definitely planning on getting some more docs on dynamic providers out including tips on workflow for situations like this.
r

rapid-eye-32575

04/17/2019, 3:43 PM
Cool, looking forward to that. I was able to get two dynamic providers working by studying the examples and a little bit of trial and error, however. A few more details and tips and tricks would certainly help though