1. Answers
  2. How to change Pulumi stack passphrase

How to Change Pulumi Stack Passphrase

To change the passphrase for a Pulumi stack, you can use the Pulumi CLI. Here is a step-by-step guide on how to do it:

Let’s go through these steps in detail:

Step 1: Navigate to your pulumi project directory

Navigate to the directory of your Pulumi project. Select the stack you want to change the passphrase for.

cd path/to/your/pulumi/project
pulumi stack select stack-name

Step 2: Change the Passphrase

Use the Pulumi CLI to change the passphrase. You will be prompted to enter the new passphrase and the current passphrase.

pulumi stack change-secrets-provider passphrase

Step 3: Verify the Change

To verify that the passphrase has been changed, run a pulumi preview and enter your new passphrase when prompted.

pulumi preview

Summary

We updated the passphrase for the stack using the pulumi stack change-secrets-provider command and specifying passphrase as the secrets provider. You can explore the Pulumi CLI docs for more information.

Deploy this code

Want to deploy this code? Sign up for a free Pulumi account to deploy in a few clicks.

Sign up

New to Pulumi?

Want to deploy this code? Sign up with Pulumi to deploy in a few clicks.

Sign up