https://pulumi.com logo
Title
i

icy-nest-77417

06/30/2021, 5:12 PM
I've started working on a native pulumi provider package for an internal service at my company. Everything works fine, except for the fact that I can't get the
Update
function to be called when updating a resource instance. Any idea of how to turn off the delete -> create behaviour?
b

billowy-army-68599

06/30/2021, 5:13 PM
hmm, wonder if @tall-librarian-49374 or @white-balloon-205 can help here, I've not written a provider myself
t

tall-librarian-49374

06/30/2021, 6:21 PM
I’m happy to help here! Is your provider open-source by any chance? Or can you share code privatly?
i

icy-nest-77417

06/30/2021, 6:37 PM
Thanks for the reply! I'm not sure I can share the code, I'll have to get back on you for that. However, you can basically assume it's up to date with the master branch of https://github.com/pulumi/pulumi-provider-boilerplate. There is no special logic implemented, except for the fact that the id of resources is hardcoded for the purposes of testing (i.e. we have a single resource now with the id "abc" and it does not change when calling
pulumi up
).
t

tall-librarian-49374

06/30/2021, 6:41 PM
If you remove it, you should see an update
i

icy-nest-77417

06/30/2021, 6:42 PM
oh let me try it
yes it works! Thanks a lot!
🎉 1