Hello, I'm trying to do my first steps with automation-api and following the example in
https://github.com/pulumi/automation-api-examples/tree/main/nodejs/pulumiOverHttp-ts
I got the problem with passphrase must be set with PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE environment variables
even if I do:
export PULUMI_CONFIG_PASSPHRASE=""
curl --header "Content-Type: application/json" --request POST --data '{"id":"hello3","content":"hello world\n"}' http://localhost:1337/sites
{"commandResult":{"stdout":"Created stack 'hello3'\n","stderr":"error: passphrase must be set with PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE environment variables\n","code":255},"name":"CommandError"}
surely I'm making some mistakes but can't realize yet
f
faint-table-42725
11/06/2020, 2:15 PM
Is that environment variable set in the shell process that’s running the server? In what you’ve pasted above, it looks like you’re setting it in the shell where you’re running curl.