Skip to main content

Python app to load SSM

Project description

SSM

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.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

ssm_loader-0.2.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file ssm-loader-0.2.0.tar.gz.

File metadata

  • Download URL: ssm-loader-0.2.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for ssm-loader-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4a214221309107e75ca07851077fc84b8d10e9e086dbf201919a51a3e443c451
MD5 6200937ba9c5cd6f3aa4bded7beaeb0d
BLAKE2b-256 c0add29911bae5eb4948bc5666ad0f68db2d2d187ea6a2d4eff5ea76be564bcf

See more details on using hashes here.

File details

Details for the file ssm_loader-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ssm_loader-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for ssm_loader-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a91e7dfa5f1653a7c77cba710396e089e94664992c074b469c3396a593dd503f
MD5 f9563fdc0eb8f525d356dc3e8e07a206
BLAKE2b-256 086781f0fd0eb4e18d5a5cc0efc3f4c0885b163956eac94d2458147e084220e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page