skillfed

sceptre-cmd-resolver

Sceptre resolver to execute generic shell commands

sceptre-cmd-resolver v2.0.0 115.5K downloads/30d#12,247 on PyPI7
Permissive license Apache2 Active released

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-resolver

uv

uv add sceptre-cmd-resolver

poetry

poetry add sceptre-cmd-resolver

Installing 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

Environment :: ConsoleIntended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

sceptre resolver shell commanddynamic parameter resolution cloudformationsceptre plugin command executionyaml tag shell command resolverruntime parameter injection sceptrebash command cloudformation parameterssceptre rcmd tag resolver
cloudformationinfrastructure-as-codesceptre-plugin

More Build Tools packages