really annoying behavior with protected resources....
# general
s
really annoying behavior with protected resources. working on importing stuff into project, and using
pulumi preview
to confirm i'm not altering existing resource as i make project more programmatic, but when the plan strategy is to replace, i just get
Preview failed: unable to delete resource
and am unable to see the diff of why the replace strategy was chosen, which is exactly what i want to understand by generating the preview. any suggestions?
b
replace usually happens when the upstream cloud provider API or property is immutable, ie you can't update in place You can usually see this in the json diff, can you do
pulumi preview -j
?
🙌 1
s
okay, that's helpful, thanks
yeah i understand how the update strategy is chosen, i just want to know what property i'm incorrectly changing, so the json output totally solves tracking the diff, thanks!