HashiCorp Terraform and Vault Variables
The Serverless Framework reads values from HashiCorp tools while it loads serverless.yml, so a service can use infrastructure that Terraform manages and secrets that Vault stores:
- Terraform state outputs: read outputs of a Terraform state stored in an S3, HCP Terraform (
remote) or HTTP backend, through a resolver withtype: terraform. - Vault secrets: read secrets from a HashiCorp Vault server with
${vault:...}, configured with environment variables or a resolver withtype: vault.
For the variable syntax, defaults and resolvers in general, see Variables in serverless.yml.