python-awsenviron
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.