vault

Important

As of Flowpipe 1.0.0, credential has been renamed to connection. The vault 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

NameTypeRequired?Description
addressStringOptionalVault server address
tokenStringOptionalAPI token

All arguments are optional, and a vault credential with no arguments will behave the same as the default credential.

Attributes (Read-Only)

AttributeTypeDescription
envMapA 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")
}