Skip to main content

ssmtree

CI PyPI Python 3.11+ License: MIT

Render AWS SSM Parameter Store as a colorized terminal tree. Browse, diff, and copy parameters across namespaces.

Features

  • Tree view — Visualize SSM parameters as a rich, colorized tree in your terminal
  • Diff — Compare parameters between two namespaces side by side
  • Copy — Copy parameters from one namespace to another with dry-run support
  • Glob filtering — Filter parameters with glob patterns to focus on what matters
  • JSON output — Export parameter trees or diffs as JSON for scripting and automation
  • Decrypt support — Decrypt SecureString parameters inline with optional KMS key re-encryption
  • SecureString safety — SecureString values shown as [redacted] by default; use --decrypt to reveal them
  • Leaf parameter support — Query a single leaf parameter directly (e.g. ssmtree /app/db/password)

Installation

pip install ssmtree

For development:

git clone https://github.com/Specter099/ssmtree.git
cd ssmtree
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

Quick Start

# Browse all parameters under a prefix
ssmtree /app/prod

# Query a single leaf parameter
ssmtree /app/prod/db/password

# Decrypt SecureString values (shown as [redacted] by default)
ssmtree --decrypt /app/prod

# Hide all values entirely
ssmtree --hide-values /app/prod

# Filter with a glob pattern
ssmtree --filter "*db*" /app

# JSON output (SecureStrings redacted by default)
ssmtree --output json /app/prod

# JSON output with SecureString values included
ssmtree --decrypt --output json --include-secrets /app/prod

Commands

diff

Compare parameters between two namespaces:

# Table diff (default)
ssmtree diff /app/prod /app/staging

# With decryption
ssmtree diff --decrypt /app/prod /app/staging

# JSON diff output
ssmtree diff --output json /app/prod /app/staging

# JSON diff with SecureString values included
ssmtree diff --decrypt --output json --include-secrets /app/prod /app/staging

copy

Copy parameters from one namespace to another:

# Preview what would be copied
ssmtree copy --dry-run /app/prod /app/staging

# Copy (prompts for confirmation)
ssmtree copy /app/prod /app/staging

# Copy with overwrite, skip confirmation
ssmtree copy --yes --overwrite /app/prod /app/staging

# Copying SecureStrings requires --decrypt (see "Secret handling" below)
ssmtree copy --decrypt /app/prod /app/staging

# Copy with decryption and re-encryption under a new KMS key
ssmtree copy --decrypt --kms-key-id alias/my-key /app/prod /app/staging

Note: copy refuses to copy SecureString parameters unless --decrypt is given. Without it, the source value is still-encrypted KMS ciphertext, and writing that back would silently corrupt the destination secret.

Options

Option Commands Description
--decrypt / -d all Decrypt SecureString values
--profile all AWS named profile to use
--region all AWS region override
--endpoint-url all Custom SSM endpoint URL (e.g. localstack)
--show-values / --hide-values main, diff Show or hide parameter values (default: show)
--filter PATTERN / -f main Glob filter on parameter paths
--output main, diff Output format: tree/table (default) or json
--include-secrets main, diff Include SecureString values in JSON output
--overwrite / --no-overwrite copy Overwrite existing destination parameters
--dry-run copy Show what would be copied without writing
--kms-key-id copy KMS key for SecureString parameters at destination
--yes / -y copy Skip confirmation prompt

Secret handling

SecureString values are protected by default and revealed only when you opt in:

  • Human-readable output (tree, diff table): SecureStrings show as [redacted] unless you pass --decrypt.
  • JSON output (--output json): SecureStrings show as ***REDACTED*** unless you pass --include-secrets (which also prints a warning to stderr).
  • copy: requires --decrypt to copy SecureStrings at all, so the real plaintext (not KMS ciphertext) is written to the destination.

A SecureString diff without --decrypt always shows as changed because KMS ciphertext is non-deterministic; decrypt to compare real values.

Development

pytest          # run tests
ruff check .    # lint

License

MIT — see LICENSE

Metadata

Release files for ssmtree 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ssmtree 0.4.0
File Size Uploaded Provenance Actions
ssmtree-0.4.0.tar.gz 31.1 kB With provenance Details for ssmtree-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ssmtree 0.4.0
File Interpreter ABI Platform Actions
ssmtree-0.4.0-py3-none-any.whl Python 3 none any Details for ssmtree-0.4.0-py3-none-any.whl

Total release size: 51.4 kB

Release files / ssmtree-0.4.0.tar.gz

Download URL ssmtree-0.4.0.tar.gz
Size 31.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6aec4d644745a0155f24089ff4cbe4f6da42710738743b984b72188d54859d4c
BLAKE2b-256 checksum
How to use checksums
b50fc5b785c9997941afb94427490bfaecb6f9f81e1774ab257d8646e2d318f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 9, 2026.

Transparency log

Release files / ssmtree-0.4.0-py3-none-any.whl

Download URL ssmtree-0.4.0-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5968b4d5e3fa40966f8a213f0495772b452bd95f493fb43e02c41944604e858c
BLAKE2b-256 checksum
How to use checksums
ecc2ee9af6f0f169c34b7ebe5ed57ed7010c76d25aa065c87ba2ea3ea96c46ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 9, 2026.

Transparency log

Security for ssmtree 0.4.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ssmtree-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 9, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page