| aws-ssm-tool | |
| SSM tool is a small helper for interacting with Amazon Simple Systems Manager, focusing on secrets storage/retrieval. | |
Overview
The AWS SSM Parameter-Store is great, but can be awkward to work with via the awscli tool. This project provides the ssm tool as an alternative interface with simple CRUD. It also supports moving or copying trees of multiple parameters, and performing those operations across multiple AWS profiles.
See setup.cfg to find the latest info about required versions of boto. There are other dependencies, including the popular click library for CLI support and rich for pretty output.
See the Usage section for more details.
Installation
See pypi for available releases.
pip install aws-ssm-tool
Usage
After installation, you can invoke this tool as either ssm or python -m ssm.
Usage info follows:
Usage info follows:
$ ssm --help
Usage: ssm [OPTIONS] COMMAND [ARGS]...
Tool for accessing secrets
Options:
--help Show this message and exit.
Commands:
copy copy a secret
delete delete secret (keeping a local-backup is default)
get-many get many secrets from hierarchy/namespace
list list prefixes below the given path
move move a secret
move-many move a whole path of secrets
put-many put many secrets
read get a secret
update put a secret
cp ALIAS for `copy`
get ALIAS for `read`
get-path ALIAS for `get-many`
ls ALIAS for `list`
move-path ALIAS for `move-many`
mv ALIAS for `move`
mv-many ALIAS for `move-many`
mv-path ALIAS for `move-many`
put ALIAS for `update`
put-path ALIAS for `put-many`
rm ALIAS for `delete`
set ALIAS for `update`
See the integration tests for more examples.
Usage from Docker
If you want to build locally, see the Dockerfile in this repo and use the Makefile:
$ make docker-build docker-test
If you don't want to build the container yourself, you can pull it like this:
$ docker pull robotwranglers/aws-ssm-tool
Using default tag: latest
latest: Pulling from robotwranglers/aws-ssm-tool
docker.io/robotwranglers/aws-ssm-tool:latest
See a typical invocation below. The 1st volume is for authenticating with SSM. The 2nd volume shares the working directory with the container so commands using files (like ssm put --file ./path/to/file /path/to/key) can still work.
$ docker run \
-v ~/.aws:/root/.aws \
-v `pwd`:/workspace \
-w /workspace \
docker.io/robotwranglers/aws-ssm-tool:latest \
ssm ls /
Metadata
Release files for aws-ssm-tool 2024.3.14.5.51
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aws-ssm-tool-2024.3.14.5.51.tar.gz | 13.7 kB | Without provenance | Details for aws-ssm-tool-2024.3.14.5.51.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aws_ssm_tool-2024.3.14.5.51-py3-none-any.whl | Python 3 | none | any | Details for aws_ssm_tool-2024.3.14.5.51-py3-none-any.whl |
Total release size: 30.2 kB
Release files / aws-ssm-tool-2024.3.14.5.51.tar.gz
| Download URL | aws-ssm-tool-2024.3.14.5.51.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61deff985682b2ef47e109e6c541212a476bcfe7be31008332c76354c59d741c
|
|
BLAKE2b-256 checksum How to use checksums |
4db01443e301f10849c55216b193a23982a04be515ec94611bbce5051edf8ab4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / aws_ssm_tool-2024.3.14.5.51-py3-none-any.whl
| Download URL | aws_ssm_tool-2024.3.14.5.51-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e03eafb9052e74401a42d919b3b8cc520ffc7947743a890ceefd8b4dc9332b0a
|
|
BLAKE2b-256 checksum How to use checksums |
b3881fb86e1e8931cf5eaf127eb8123112d77fa4648730cf574de6ebd847aed1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for aws-ssm-tool 2024.3.14.5.51
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.