This utility allows you to store your team's .env files in the cloud and utilize environment variables from a single source of truth. This ensures that your team is always using the latest configuration settings, and you don't have to worry about updating each team member's .env file individually. By centralizing your environment variables, you can simplify your deployment process and improve the overall security of your application.
- user is authenticated with cloud provider
- user has configured a default cloud profile (.aws/credentials or gcloud init)
- user has read-level access to the bucket where the .env file is stored
pip install envvar-manager
export ENVFILE_PATH="gs://path/to/.env"
or
export ENVFILE_PATH="s3://path/to/.env"
import envar_manager
Now use os.environ / os.getenv as usual.
- will authenticate with client
- create bucket for .env file
- add users to bucket
envvar_manager init -p path/to/.env --users [email protected] [email protected]
- add support for Docker
- add support for Kubernetes