sparse-intern-71089
03/21/2021, 9:50 PMbored-oyster-3147
03/21/2021, 10:38 PMCommandResult
indicates that the Automation API is just forwarding you an error that the CLI threw.
When you provide a projectSettings
object the LocalWorkspace.CreateOrSelectStack
method should be serializing that into a project setting YAML.
So, the first thing I would do is verify that the project settings YAML that is generated, in the temp directory that it creates, has the secrets provider as you expect it to.
If it does, than I would try the same configuration using the CLI - not the Automation API - and see if you get the same error.
If you don't, than it is an Automation API issue. If you do, than it is either a CLI issue or is an issue with your configurationlemon-agent-27707
03/22/2021, 4:27 AMbetter-shampoo-48884
03/22/2021, 5:58 AMworkDir: ".",
now, and Pulumi.yaml showed up in the directory (no stack yaml though). Same error - so I'm guessing it needs a passphrase to establish a stack then it converts that to secrets-store afterwards..better-shampoo-48884
03/22/2021, 6:40 AMconst stack = await pulumi.LocalWorkspace.createOrSelectStack({
projectName: "k8s-baseline",
program: pulumiProgram,
stackName: currentStack
},{
envVars: {
AZURE_KEYVAULT_AUTH_VIA_CLI: "true",
},
projectSettings: {
....
},
workDir: ".",
secretsProvider: "<azurekeyvault://xxxxx.vault.azure.net/keys/pulumi>"
})
it works without complaintbetter-shampoo-48884
03/22/2021, 6:41 AMbetter-shampoo-48884
03/22/2021, 6:42 AMlemon-agent-27707
03/22/2021, 4:12 PM