better-shampoo-4888403/27/2021, 6:39 AM
See code in post above for source, and in the thread for the automation.ts code as well.. Basically I'm running automation on top of a preexisting standard pulumi-cli set of stacks in a project. Previously, I got the message when I failed to set AZURE_KEYVAULT_AUTH_VIA_CLI to true - but now I've both got it in the environment I'm executing in AND the envVars of the LocalWorkspace settings. Also - the CommandError: code: is a bit weird because there are quite a lot of hits for that exact code.. which is really weird.. and that code returns results relating from electron stuff to .msp upgrades of adobe software to IIS stuff.. The most useful result was the IIS one which has this as the title:
λ ts-node automation.ts CommandError: code: 4294967295 stdout: stderr: error: decrypting secrets: passphrase must be set with PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE environment variables err?: at Object.createCommandError (c:\<path>\node_modules\@pulumi\pulumi\x\automation\errors.js:71:17) at ChildProcess.<anonymous> (c:\<path>\node_modules\@pulumi\pulumi\x\automation\cmd.js:63:40)
- could this be a filesystem issue somehow?! Using pulumi
ERROR_FILE_IN_USE msdeploy.exe failed with return code: 4294967295
if it helps.
and the LocalWorkspace:
const currentProject = yaml.load(fs.readFileSync("./Pulumi.yaml"))
lemon-agent-2770703/27/2021, 3:40 PM
to the directory that contains your pulumi yaml, it will pick it up automatically.
better-shampoo-4888403/27/2021, 4:29 PM
lemon-agent-2770703/28/2021, 4:48 PM
then this behavior would be a bug and we should fix it. If you have a repro, please share or file an issue: https://github.com/pulumi/pulumi/issues/new?assignees=&labels=kind%2Fbug&template=0-bug-report.md
better-shampoo-4888403/29/2021, 12:42 PM