larson
loads parameters from AWS ssm parameter store, and adds them as shell environment variables.
$ larson get-parameters /a/parameter/store/path/ > ./example.json
$ cat ./example.json
{
"alpha": "the_alpha_value",
"beta": "the_beta_value",
"delta": "the_delta_value"
}
source larson_json_to_vars ./example.json
$ env | grep 'alpha\|beta\|delta'
alpha=the_alpha_value
delta=the_delta_value
beta=the_beta_value
$ larson put-parameters /a/parameter/store/path/ --input-file=./new-values.json
pip install larson
pytest
Larson is available via PyPI. To cut a new release, do the following:
- Edit
setup.py
such that it contains the new release version number. - python -m pip install build
- python -m build --wheel
- If you see
Successfully built larson-<new-version-number>-py3-none-any.whl
then proceed. If not, troubleshoot. - Get your PyPI API token by logging into the Ops PBS PyPI account.
- After successfully building the wheel, upload with
twine
: `twine upload dist/. When prompted, enter your API token.