Skip to content

A utility to centralize and manage environment variables from one cloud storage bucket

Notifications You must be signed in to change notification settings

omergi313/envar_manager

Repository files navigation

envar_manager

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.

prerequisite:

  • 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

Usage:

pip install envvar-manager
export ENVFILE_PATH="gs://path/to/.env"
or
export ENVFILE_PATH="s3://path/to/.env"

In python script:

import envar_manager

Now use os.environ / os.getenv as usual.

As admin:

  • 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]

TODO:

  • add support for Docker
  • add support for Kubernetes

About

A utility to centralize and manage environment variables from one cloud storage bucket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published