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

green-pencil-17360

07/08/2021, 2:29 PM
Hello, I have a problem with the passphrase. It did not prompt for the second time when I did the 
pulumi up
 . It actually forced me to set up the pass-phrase when I created the stack.  It is throwing me the following error.
Copy code
constructing secrets manager of type "passphrase": unable to find either `PULUMI_CONFIG_PASSPHRASE` or `PULUMI_CONFIG_PASSPHRASE_FILE` when trying to access the Passphrase Secrets Provider; please ensure one of these environment variables is set to allow the operation to continue
b

bumpy-summer-9075

07/08/2021, 2:30 PM
I'm not sure I understand your issue. Just set
PULUMI_CONFIG_PASSPHRASE
to the passphrase you've initially set up and you'll be good to go
g

green-pencil-17360

07/08/2021, 2:30 PM
Its not prompting me for the 2nd time when I do pulumi up.
b

bumpy-summer-9075

07/08/2021, 2:31 PM
It should not prompt you, it only does so when initializing
g

green-pencil-17360

07/08/2021, 2:31 PM
so can you help me with the steps to resolve this?
b

bumpy-summer-9075

07/08/2021, 2:31 PM
I don't understand your issue
do you know how to set environment variables?
g

green-pencil-17360

07/08/2021, 2:32 PM
no. I know how to set them on windows.
b

bumpy-summer-9075

07/08/2021, 2:32 PM
which OS are you on?
g

green-pencil-17360

07/08/2021, 2:32 PM
mac
b

bumpy-summer-9075

07/08/2021, 2:33 PM
Assuming you're using bash, and your password is
foo
, you can either use the password on every command:
PULUMI_CONFIG_PASSPHRASE=foo pulumi up
or set it for the current shell:
Copy code
export PULUMI_CONFIG_PASSPHRASE=foo
pulumi up
g

green-pencil-17360

07/08/2021, 2:34 PM
okay will try that.
b

bumpy-summer-9075

07/08/2021, 2:34 PM
if you want to set it permanently, you'll have to add it to your
bash_profile
, but I would highly recommend reading up on environment variables and bash
g

green-pencil-17360

07/08/2021, 2:35 PM
Thanks
👍 1
Its working Thank you.
😃 1
2 Views