This example shows a personal .envrc.local for direnv to load InfraFoundry config paths and credentials locally.
- Audience: Developers using direnv for local InfraFoundry work.
- Prereqs: direnv installed and allowed in the repo; access to your config repo and credentials.
- Setting per-user overrides for config repo paths and log levels.
- Storing provider credentials locally (never committed).
- Copy the example:
cp docs/examples/.envrc.local.example .envrc.local
- Edit values for your environment and allow direnv:
direnv allow
- Variables: Point
INFRAFOUNDRY_CONFIG_REPOto your config repo; set log levels and provider creds. - Location:
.envrc.localat repo root; git-ignored.
- Run
direnv statusto confirm variables are loaded. - Verify
printenv | grep INFRAFOUNDRYshows expected values.
- Sample content:
export INFRAFOUNDRY_CONFIG_REPO=$HOME/my-infra-config export INFRAFOUNDRY_LOG_LEVEL=INFO export KUBECONFIG=$HOME/.kube/config
- Symptom: Variables not applied. Fix: Ensure
.envrc.localexists, rundirenv allow, thendirenv reload. - Symptom: Credentials missing. Fix: Export provider credentials in
.envrc.local; keep file git-ignored.
Last updated: 2025-12-23 14:27 GMT