Skip to content

Commit 8e254a3

Browse files
matifalimafredri
andauthored
docs: elaborate instructions for setting up hcp vault module (#163)
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
1 parent 1ab5313 commit 8e254a3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
174 KB
Loading

hcp-vault-secrets/README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ module "vault" {
2323

2424
## Configuration
2525

26-
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.
26+
To configure the HCP Vault Secrets module, follow these steps,
27+
28+
1. [Create secrets in HCP Vault Secrets](https://developer.hashicorp.com/vault/tutorials/hcp-vault-secrets-get-started/hcp-vault-secrets-create-secret)
29+
2. 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.
30+
![HCP vault secrets credentials](../.images/hcp-vault-secrets-credentials.png)
31+
3. Set `HCP_CLIENT_ID` and `HCP_CLIENT_SECRET` variables on the coder provisioner (recommended) or supply them as input to the module.
32+
33+
> See the [HCP Vault Secrets documentation](https://developer.hashicorp.com/hcp/docs/vault-secrets) for more information.
2734
2835
## Fetch All Secrets
2936

0 commit comments

Comments
 (0)