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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ssm-loader-0.2.4.tar.gz.
File metadata
- Download URL: ssm-loader-0.2.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5cba320d979544d2c17a3e2fdb7c9548acd58766dbbdf1f28c4d26c71e1307d
|
|
| MD5 |
41188a75a8946ae8040d63dedd833c5d
|
|
| BLAKE2b-256 |
66ef5e7e627371bf1e4207f979a0b4bee5dbc99ffcf8d352dfcbf28d0467a2cf
|
File details
Details for the file ssm_loader-0.2.4-py3-none-any.whl.
File metadata
- Download URL: ssm_loader-0.2.4-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f68ca82057f9476457ef134db54e9f186ef0895b364a67b8ada50bf558cffc93
|
|
| MD5 |
c4412fe29ad8a5088a87127776f92d2c
|
|
| BLAKE2b-256 |
64e1d4ebf36e2ada30cecd0cb54fa8ed12be68bbf64eec9231f06517bd221ea9
|