This project aims to help dump and load AWS SSM parameters.
# 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
The file to use the ssm load
command should be in this format.
{
"parameters": [
{
"Name": "param1",
"Value": "value1"
}
]
}
Now you are ready to build an image from this project Dockerfile.
docker build -t ssm .
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
make build
make run
make test
make flake8
App managed by DNX Solutions.
Apache 2 Licensed. See LICENSE for full details.