hi everyone, i've created a protected resource, an...
# getting-started
b
hi everyone, i've created a protected resource, and then i unprotected it directly by modifying the state:
pulumi state unprotect ...
now, in the code, i still have the code block which creates the protected resource, but when i run
pulumi preview
, it shows resources unchanged. what i imagine how it should work is: since i modify the state manually (setting it as unprotected), while my code has it as protected, when i do
pulumi preview
i expect it should show resource going from
unprotected
to
protected
. i know
protect
is a pulumi thing, but does my expectation make sense? is this expected?
e
It might be that we just don't show a diff change for that setting. Have you got an example of what prints and a mock up of what you would have expected?
b
It might be that we just don't show a diff change for that setting.
i think that is probably the reason why. the output is just resources unchanged, no errors. what i would expect would be something tell me the diff that `resource goes from
unprotected to protected