sceptre-cmd-resolver
Sceptre resolver to execute generic shell commands
What it is and what it does
This is a plugin for Sceptre, the CloudFormation orchestration tool, that lets you use the `!rcmd` YAML tag to execute arbitrary shell commands and inject their output as CloudFormation stack parameters. Instead of hardcoding values, you can run commands at deploy time—pulling secrets from Vault, querying AWS APIs for the latest AMI IDs, reading files, or piping output through standard Unix tools like jq and grep.
The resolver runs commands with the same AWS profile and credentials that Sceptre uses, and you can override the profile, region, or IAM role on a per-parameter basis. This makes it useful for dynamic lookups that depend on your deployment environment, secrets management integration, or any external data source accessible via the command line.
Use it for:
- Fetch the latest Ubuntu AMI ID from AWS Systems Manager Parameter Store at stack deployment time
- Retrieve database passwords or API keys from Vault or similar secret management tools
- Read configuration or secrets from local files using cat, jq, or other Unix utilities
- Query AWS APIs (S3, EC2, etc.) to populate stack parameters with live data
- Generate deployment metadata like timestamps or usernames to include in stack tags or comments
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Sceptre resolver plugin that executes shell commands to dynamically resolve CloudFormation stack parameters at deployment time.
Yes, if you use Sceptre and need to inject dynamic values into CloudFormation stacks at deploy time. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it safe to adopt. The single dependency on sceptre itself keeps the footprint minimal. Install it when you want to move beyond static parameters and integrate external tools or APIs into your infrastructure-as-code workflow.
Install
sceptre-cmd-resolver on PyPI
pip
pip install sceptre-cmd-resolveruv
uv add sceptre-cmd-resolverpoetry
poetry add sceptre-cmd-resolverInstalling sceptre-cmd-resolver
Before you install
Low friction install with a single runtime dependency on sceptre. The package is actively maintained with recent commits and supports Python 3.7 through 3.10.
License in practice
Apache2 permissive license allows use in commercial and proprietary projects without significant restrictions.
Quickstart
pip install sceptre-cmd-resolver
# In a Sceptre config YAML file:
parameters:
DatabasePassword: !rcmd cat .env/password
LatestAmiId: !rcmd aws ssm get-parameters --names /aws/service/canonical/ubuntu/server/20.04/stable/current/amd64/hvm/ebs-gp2/ami-id --query 'Parameters[0].[Value]' --output text
Verify before relying
- Whether the resolver works reliably with Windows PowerShell or only Unix-like shells
- Performance characteristics when resolving many parameters or executing long-running commands
- Whether environment variables and AWS credentials are properly inherited during command execution
Package facts
| License | Apache2 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — sceptre |
| Maintenance | actively maintained — 1,278 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 115,508/month — #12,247 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sceptre_cmd_resolver-2.0.0-py2.py3-none-any.whl
Keywords: sceptre, sceptre-resolver
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
sceptreSceptre automates AWS CloudFormation stack…
permissive · top 15,000 on PyPI
sceptre-file-resolverA Sceptre resolver plugin that retrieves file…
permissive · top 15,000 on PyPI
resolvelibResolveLib provides a generic dependency…
permissive · top 1,000 on PyPI
yqyq is a command-line processor that applies jq…
permissive · top 5,000 on PyPI
cfn-flipConverts AWS CloudFormation templates between…
permissive · top 5,000 on PyPI
nab-resolverA generic PubGrub-style dependency resolver…
permissive · top 15,000 on PyPI
cloudformation-cliA command-line tool for authoring and managing…
permissive · top 15,000 on PyPI
aiohttp-asyncmdnsresolverProvides an async resolver for aiohttp that…
permissive · top 15,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
referencingResolves JSON references according to JSON…
permissive · top 100 on PyPI