This module lets you fetch secrets from [HCP Vault Secrets](https://developer.hashicorp.com/hcp/docs/vault-secrets) in your Coder workspaces.
This module lets you fetch all or selective secrets from a [HCP Vault Secrets](https://developer.hashicorp.com/hcp/docs/vault-secrets) app into your Coder workspaces.
```tf
module "vault" {
@ -18,7 +18,6 @@ module "vault" {
version = "1.0.3"
agent_id = coder_agent.example.id
app_name = "demo-app"
secrets_list = ["MY_SECRET_1", "MY_SECRET_2"]
}
```
@ -26,7 +25,34 @@ module "vault" {
To configure the HCP Vault Secrets module, you must create an HCP Service Principal from the HCP Vault Secrets app in the HCP console. This will give you the `HCP_CLIENT_ID` and `HCP_CLIENT_SECRET` that you need to authenticate with HCP Vault Secrets. See the [HCP Vault Secrets documentation](https://developer.hashicorp.com/hcp/docs/vault-secrets) for more information.
## Example
## Fetch All Secrets
To fetch all secrets from the HCP Vault Secrets app, skip the `secrets` input.