Skip to content

deploymode/populate-ssm

Repository files navigation

Populate AWS SSM Parameter Store from .env or .json files

Prerequisites

  • Python3
  • virtualenv

Recommended

  • aws-vault or leapp-cli

Set up

Dev install

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Local install (for usage)

To install a script in /usr/local/bin/populate-ssm:

pip3 install .

Install from git

The easiest way is by using pipx.

If you don't have pipx, you can install it with:

python3 -m pip install --upgrade pip
python3 -m pipx ensurepath
# Reload your shell

Now install populate-ssm:

pipx install git+https://github.com/deploymode/populate-ssm.git

By default, this will install the tool in ~/.local/bin/populate-ssm.

Testing

ave om-staging-admin -- python src/populate_ssm/main.py test/one.env /myorg/test/app

Usage Example

export STAGE=staging
ave myorg-$STAGE-admin -- python __init__.py ../../../my-project/$STAGE.env /myorg/$STAGE/app

About

Simple tool to populate AWS SSM Parameter Store from a .env file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages