awsenviron

Load environ vars from AWS Parameter Store


Keywords
env, python, aws, parameter-store, environment-variables
License
MIT
Install
pip install awsenviron==0.0.7

Documentation

python-awsenviron

Supported Versions Build Status Coverage Status PyPI version

The awsenviron reads the key, value pair from AWS Parameter Store and adds them to environment variable. This was inspired by python-dotenv and 12-factor principles.

Installation

pip install awsenviron

or

pipenv install awsenviron

Usage

awsenviron.load_from_parameter_store(path='<your-path>')

Now, you can access the variables either from system environment variable:

import os

DATABASE_URI = os.environ.get('DATABASE_URI')

Authentication

awsenviron use boto3 to authentication, click here to see the methods.