Easily load variables from AWS Parameter store into environment variables

Easily load variables from AWS Parameter store into environment variables.

Because it handles AWS pagination so the amount of requests performed to retrieve the parameters are the bare minimum.
Also it handles invalid parameters, so you don’t have to deal with undefined variables exceptions, as an option.

from awstanding.parameter_store import load_parameters
load_parameters({'/some/path/to/something/stored': 'IMPORTANT_SETTING'})

import os
print(os.environ.get('IMPORTANT_SETTING'))
'super-important-value'

import os
from awstanding.parameter_store import load_parameters

 

To finish reading, please visit source site