no, there isn’t any way to reset this. You’ll need to:
•
pulumi state delete
the resources
• reimport them using the
import
resource option or using the CLI
s
shy-waiter-84958
08/08/2023, 3:34 PM
Well that stinks, thanks.
b
billowy-army-68599
08/08/2023, 3:40 PM
the alternative is to fundamentally break the encryption model, which I don’t think is a good option. If the underlying encryption key has disappeared, you can’t decrypt values.
e
echoing-dinner-19531
08/08/2023, 8:33 PM
I have considered adding a "clean" function to just strip the state file of all secret values for this. The diff on next update would probably look pretty bad, but it would at least keep all your resource types and id's tracked.
s
shy-waiter-84958
08/08/2023, 9:17 PM
That would save a lot of time trying to re-import larger stacks with lost secrets
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.