Edit the <cloud>/<environment>/.envrc
files with the profile names and other settings for your environments:
"$EDITOR" aws/dev/.envrc
Install direnv
and approve the .envrc
files in just one command:
make
Then just cd
into these directories:
cd aws/dev
to automatically configure your cloud environment CLI settings,
including switching your kubectl
context to the right Kubernetes cluster.
See aws/README.md or gcp/README.md for more cloud specific information.
Changes to a $PWD/.envrc
require:
direnv allow # path/to/.envrc - defaults to $PWD/.envrc
approval for safety.
Or you can run from the top level directory:
make allow
to direnv allow
all the .envrc
found in this repo.
The rest of my original source repos are here.
Pre-built Docker images are available on my DockerHub.