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.2.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file ssm-loader-0.2.2.tar.gz
.
File metadata
- Download URL: ssm-loader-0.2.2.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.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | decd4eb725ccd3cee1e723d626ef784855e72983d7dfba7370711c0499d8042d |
|
MD5 | d3b8ce82e2ab6b4a9403166d61404061 |
|
BLAKE2b-256 | 978088c885746698756fe0f54d11bdbab3658a752cd7d2de0402829cf8c7e2e5 |
File details
Details for the file ssm_loader-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: ssm_loader-0.2.2-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.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8885723f17ba216ee476618e8a381e3070012641e459062fe78b0c124edc7a94 |
|
MD5 | c687ad308b601b052f745aa77fdb81d1 |
|
BLAKE2b-256 | d3d390815b9f0f0d53ca8e43c7ef0b50cc377bb6a897126c17f36e06a7763ead |