vault-login
The vault-login provider enables you to log in to HashiCorp Vault using OpenID Connect or by providing static credentials. The provider will return a set of credentials that can be used to fetch secrets using the vault-secrets provider.
Examples
yaml
values:
vault:
login:
fn::open::vault-login:
address: https://127.0.0.1:8200/
jwt:
role: example-role
environmentVariables:
# Consumed by the Vault CLI and the Pulumi Vault provider
VAULT_ADDR: ${vault.login.address}
VAULT_TOKEN: ${vault.login.token}yaml
values:
vault:
login:
fn::open::vault-login:
address: https://sample-cluster-public-vault-12345678.8ca2e2af.z1.hashicorp.cloud:8200
namespace: admin/example
token:
displayName: esc-token
token:
fn::secret: redacted
policies: [kv-read]
environmentVariables:
# Consumed by the Vault CLI and the Pulumi Vault provider
VAULT_ADDR: ${vault.login.address}
VAULT_TOKEN: ${vault.login.token}
VAULT_NAMESPACE: ${vault.login.namespace}Schema reference
Inputs
Outputs
Configuring OIDC
To learn how to configure OpenID Connect (OIDC) between Pulumi Cloud and Vault, see the OpenID Connect integration documentation.
If you need a raw OIDC token to exchange with another service yourself, use fn::open::oidc instead.