feat(vault-github): use coder_env to set VAULT_ADDR in workspace (#112)

This commit is contained in:
Muhammad Atif Ali
2023-12-16 19:00:50 +03:00
committed by GitHub
parent 1e3bd2b04b
commit f8faea1855
2 changed files with 8 additions and 11 deletions

View File

@@ -17,16 +17,6 @@ module "vault" {
agent_id = coder_agent.example.id
vault_addr = "https://vault.example.com"
}
# A workaround until we have https://github.com/coder/terraform-provider-coder/issues/170
resource "coder_agent" "example" {
...
env = {
VAULT_ADDR = "https://vault.example.com"
}
...
}
```
Then you can use the Vault CLI in your workspaces to fetch secrets from Vault: