https://pulumi.com logo
#general
Title
# general
a

ambitious-father-68746

05/26/2020, 3:29 PM
Hi, I'm fairly new to Pulumi and I've started to build bits of our test infrastructure with it, using locally stored state. Unfortunately it seems that I've lost the state passphrase. What options do I have here? Is the whole state lost?
g

gentle-diamond-70147

05/26/2020, 5:20 PM
The state file itself will still be available in the Pulumi SaaS and other backend types. The entire state is not encrypted, only any values, inputs, outputs, etc that are marked as secret. Config secrets are not recoverable without the original passphrase. You can potentially migrate your state to a new stack (with new passphrase) by changing the secrets provider. Those steps are detailed at https://www.pulumi.com/docs/intro/concepts/config/#changing-the-secrets-provider-for-a-stack. You will need to adjust those steps as you cannot use
--show-secrets
without the passphrase. This will be a manual process, modifying your state file directly, so it might be easier/quicker to start over if this is not a critical stack.
a

ambitious-father-68746

05/26/2020, 5:24 PM
Thanks. It's not essential, I just need to reimport those few resources that I have created before.
👍 1