This message was deleted.
# general
s
This message was deleted.
βœ… 1
r
pulumi stack export
might be the closest thing to what you want
πŸ‘ 1
h
pulumi stack export | jq '.deployment.resources[] | select(.protect == true) | .urn' | xargs -I{} pulumi state unprotect {}
^ this works, but is sooo slooowwwww... 4.5 mins for 12 resources anything i can do to speed this up safely?
😰 1
r
pulumi state unprotect --all
?
πŸ‘€ 1
h
17 seconds! Wow, thanks!
i wonder what is being done under the hood to make this possible. concurrent updates? request batching?
b
The issue with doing this one at a time is that each change becomes its own change set and pushes a change in your state, using the command Komal pointed out means we handle it internally and it’s only 1 change to the state :) so only 1 diff that needs to be pushed to the backend
πŸ’― 1
πŸ‘ 1
p
i did stack export, search and replace in vs code, and then stack import πŸ™‚ Simple and fast
πŸ’― 1
✨ 1