- macOS Monterey 12.5 intel
- python 3.9.12
- HashiCorp Vault Enterprise v1.11.2+ent
# Install fastapi
pip install fastapi
# Install uvicorn
pip install uvicorn
# main.py
vault_addr = "http://127.0.0.1:8200"
headers = {
'X-Vault-Token': 'root'
}
Trial : https://www.hashicorp.com/products/vault/trial
VAULT_LICENSE_PATH=vault.hclic vault-ent server -dev -dev-root-token-id=root
Terraform Apply or cli
- Terraform Code : terraform/vault
- CLI : terraform/vault/cli.md
HOME DIR : app
cd app
uvicorn main:app --reload