https://pulumi.com logo
#getting-started
Title
# getting-started
t

thousands-knife-3009

03/21/2024, 5:33 PM
what is the best practice for managing provider upgrades/updates? for example, i have google cloud resource that is a network subnet. other resources such as virtual machines rely on this subnet existing. the google cloud provider version has updated and is wanting to delete and recreate the subnet in gcp.
f

fast-sandwich-30809

03/22/2024, 6:27 PM
Hey Jeff! Is there a diff / preview that shows why it wants to re-create it? (I'm guessing it's the provider property change), it probably "sees" them as different resources. You might be able to use the
aliases
property to stitch things back together
e

echoing-dinner-19531

03/23/2024, 7:51 AM
Yeh provider upgrades in general shouldn't cause resources to replace. Chances are your either doing something that's causing the engine to think it's a whole new provider not just an upgrade, or there's a bug in the provider.