sparse-intern-71089
08/31/2023, 12:14 PMbrave-planet-10645
08/31/2023, 12:32 PMpulumi import
command or the add the id to the resource. There’s some guidance on what to do (I would use the pulumi import
command personally) on this page: https://www.pulumi.com/docs/using-pulumi/adopting-pulumi/import/average-horse-29207
08/31/2023, 12:36 PMpulumi refresh
to interactively walk me through the imports I needed
Are these two different kinds of imports?brave-planet-10645
08/31/2023, 12:37 PMbrave-planet-10645
08/31/2023, 12:38 PMbrave-planet-10645
08/31/2023, 12:39 PMaverage-horse-29207
08/31/2023, 12:56 PMpulumi refresh
couldn't detect these changes, or is simply something that hasn't been written. I'm coming with a lot of familiarity deploying with ARM / bicep templates which don't include a state file, so I'm still trying to wrap my head around what the state file is doing)brave-planet-10645
08/31/2023, 12:57 PMaverage-horse-29207
08/31/2023, 12:57 PMbrave-planet-10645
08/31/2023, 12:58 PMaverage-horse-29207
08/31/2023, 1:08 PMpulumi refresh
is purely looking at the state. And because pulumi's initial creation never got far enough to insert into the statefile, pulumi refresh
never knows about the other resources.
My thinking was that since plumui up
knew enough about what resource to create (and that conflicted), that it could therefore be able to work out the specific resource to import. However I never see a call to dotnet build
when running pulumi refresh
, so it never has any of that information available to it.average-horse-29207
08/31/2023, 1:08 PMbrave-planet-10645
08/31/2023, 1:08 PMbrave-planet-10645
08/31/2023, 1:08 PM