vault
ImportantAs of Flowpipe 1.0.0,
credential
has been renamed toconnection
. Thevault
credential resource is deprecated and will be removed in a future version of Flowpipe. Use the vault connection instead.
The vault
credential can be used to access Vault resources.
credential "vault" "my_vault" { address = "http://127.0.0.1:8200" token = "hvs.FaKe"}
Arguments
Name | Type | Required? | Description |
---|---|---|---|
address | String | Optional | Vault server address |
token | String | Optional | API token |
All arguments are optional, and a vault
credential with no arguments will behave the same as the default credential.
Attributes (Read-Only)
Attribute | Type | Description |
---|---|---|
env | Map | A map of the resolved credential-related environment variables (VAULT_ADDR , VAULT_TOKEN ) |
Default Credential
The vault
credential type includes an implicit, default credential (credential.vault.default
) that will be configured to set the token
to the VAULT_TOKEN
environment variable and the domain
to VAULT_ADDR
.
credential "vault" "default" { domain = env("VAULT_ADDR") token = env("VAULT_TOKEN")}