Overview of the Vault Provider
mainThe Vault provider allows Terraform to read from, write to, and configure HashiCorp Vault. It is primarily used for two distinct use cases:
- Configuring and Populating Vault: Vault administrators use Terraform to set up Vault itself and populate it with secrets.
- Using Vault credentials in Terraform configuration: Using Vault to obtain short-lived credentials (e.g., from the AWS Secrets Engine) to authenticate other Terraform providers.
Security Warning
Interacting with Vault from Terraform causes any secrets that you read and write to be persisted in both Terraform's state file and in any generated plan files. These files must be treated as sensitive and protected accordingly. Terraform currently has no mechanism to redact or protect secrets provided via configuration or returned via data sources.