terraform-vault-bootstrap¶
Terraform configuration that bootstraps HashiCorp Vault for secret management workflows.
What it provisions¶
- KV v2 mount — creates or reuses a KV v2 secrets engine
- Least-privilege policy — scoped to configured secret prefixes with tunable capabilities
- Renewable token — minted and scoped to the created policy
- AppRole auth — optional AppRole backend for Kubernetes External Secrets Operator integration
Quick start¶
- Copy
terraform.tfvars.exampletoterraform.tfvarsand setvault_addrandvault_token. - Copy
managed-credentials.yaml.exampletomanaged-credentials.yamlwith your credential inventory. - Run:
The module is intentionally generic. Policy name, token display name, mount description, capabilities, and managed prefixes are all configurable without changing module code.