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

dry-potato-52542

02/27/2024, 8:20 PM
Hey folks maybe stupid question but I can't find any proper docs. Let's say I have dynamic provider(source code saved in the state etc) There is a bug in the update. I have update source code of the provider, but it still erroring out because it trying to use old code. Is there a way to update dynamic provider source code only?
g

gifted-rose-6919

02/27/2024, 11:57 PM
Are you updating the provider source + some resources controlled by this provider in the same update? If so then you might need to separate it like: 1. make changes to you provider(do not change the resources) 2.
pulumi up
=> this would update
__provider
key in the state of every resource with the new provider code 3. make changes to your resources 4.
pulumi up
=> new provider code is used to update your resources
it's been a while since i worked with it, but i think there is a race condition when you are tryin to update
__provider
and the actual state of the resource that might mess things up
d

dry-potato-52542

02/27/2024, 11:59 PM
That’s ideal. But it’s harder to achieve. If the provider makes decisions dynamically based on the remote state then there is no way to predictably move with one or another
I was wonder if pulumi provider support versioning like tf
To support easier migration between versions
g

gifted-rose-6919

02/28/2024, 12:09 AM
I don't think they do. When I was working on it, I was gonna npm package my provider, then import it whenever needed, but we use it in only one repo + it never changes, so I didn't bother