Python app to load SSM
Project description
ssm-loader
This project aims to help dump and load AWS SSM parameters.
Usage Example
# One .json file will be generated in your local with all variables
ssm dump "/app/myapp/app-path"
# All variables described will be inputed inside the IAM configured
ssm load -f ssm.json
Dependencies
- Docker
Load file format
The file to use the ssm load
command should be in this format.
{
"parameters": [
{
"Name": "param1",
"Value": "value1"
}
]
}
Docker
Build
Now you are ready to build an image from this project Dockerfile.
docker build -t ssm .
Run
After your image has been built successfully, you can run it as a container. In your terminal, run the command docker images to view your images.
# Dump
docker run -rm \
-e AWS_REGION='ap-southeast-2' \
-e AWS_ACCESS_KEY_ID='<your-access-key-id>' \
-e AWS_SECRET_ACCESS_KEY='<your-secret-access-key>' \
ssm dump "/app/myapp/app-path"
# Loading
docker run -rm \
-e AWS_REGION='ap-southeast-2' \
-e AWS_ACCESS_KEY_ID='<your-access-key-id>' \
-e AWS_SECRET_ACCESS_KEY='<your-secret-access-key>' \
ssm load -f ssm.json
Setup development environment
Install dependencies
make build
Run
make run
Test
make test
Lint Flake8
make flake8
Author
App managed by DNX Solutions.
License
Apache 2 Licensed. See LICENSE for full details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ssm-loader-0.2.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for ssm_loader-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05cc30437440199c2cc86e3afecd6fa51861ee28269df4aceca1ab82951c3ba8 |
|
MD5 | cdab05452fbac6d2c104fd4498b22887 |
|
BLAKE2b-256 | 49d18126e612768571bceb9c59712098e6d207641fc934dea257e1b644f04c2f |