Hi Team, I am trying to use the hashivault secret...
# general
s
Hi Team, I am trying to use the hashivault secrets provider,
Copy code
error: getting stack configuration: get stack secrets manager: open keeper hashivault://*********: neither VAULT_SERVER_URL nor VAULT_ADDR environment variables are set
Am I able to set the values as configs or they need to be environment variables?
f
assuming you mean the
pulumi-vault
provider, you can set these via env var or stack config; see https://www.pulumi.com/registry/packages/vault/installation-configuration/#configuration
s
Nope, specifically hashivault secrets provider.
f
aha I understand now - yes, they need to be env vars
pulumi
uses https://pkg.go.dev/gocloud.dev/secrets/hashivault under-the-hood so
The default URL opener will dial a Vault server using the environment variables "VAULT_SERVER_URL" (or "VAULT_ADDR") and "VAULT_SERVER_TOKEN" (or "VAULT_TOKEN").
applies