Hello, I've a question related to pulumi api and s...
# automation-api
n
Hello, I've a question related to pulumi api and stack config. There's any way to retrieve a secret value from a stack update config? It seems I'm not able to do that via the API (I can only see the secret value, but there's no flag to decrypt the secret), and from the pulumi CLI
history
command I can't decrypt the secret. If I want to use the
pulumi config -s <stack>
using a stack created via the Automation API, pulumi complains there's no
Pulumi.yaml
file. How can I solve this?
l
You should be able to call
GetAllConfig
https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/auto#LocalWorkspace.GetAllConfig You can rehydrate the config in your local workspace from the last update on a given stack by calling
RefreshConfig
https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/auto#LocalWorkspace.RefreshConfig
n
Thanks