{"id":22336,"library":"sceptre-cmd-resolver","title":"Sceptre Cmd Resolver","description":"A Sceptre resolver for executing generic shell commands during stack resolution. This package allows Sceptre to dynamically resolve stack parameters by running arbitrary commands. The current version is 2.0.0, with irregular releases.","status":"active","version":"2.0.0","language":"python","source_language":"en","source_url":"https://github.com/Sceptre/sceptre-resolver-cmd","tags":["sceptre","resolver","cmd","cloudformation"],"install":[{"cmd":"pip install sceptre-cmd-resolver","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"CmdResolver","correct":"from sceptre.cmd_resolver import CmdResolver"}],"quickstart":{"code":"from sceptre.cmd_resolver import CmdResolver\n\n# Example usage in a Sceptre config\n# resolver: !cmd echo hello\n# This would resolve to \"hello\"\n# The resolver can be instantiated directly for testing:\nresolver = CmdResolver(command='echo hello')\nresult = resolver.resolve()\nprint(result)  # Output: hello","lang":"python","description":"Basic usage of CmdResolver."},"warnings":[{"fix":"Upgrade Sceptre to at least 2.0.0.","message":"Version 2.x may not be compatible with older versions of Sceptre. Ensure Sceptre >= 2.0.0 is installed.","severity":"deprecated","affected_versions":"2.0.0"},{"fix":"Do not use user-provided input directly in the command.","message":"The resolver executes arbitrary shell commands. Ensure commands are sanitized to avoid command injection.","severity":"gotcha","affected_versions":"all"},{"fix":"Redirect stderr to stdout in the command (e.g., 2>&1).","message":"The resolver does not automatically capture stderr; only stdout is returned.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install the package: pip install sceptre-cmd-resolver","cause":"The package is not installed or you are using an old Sceptre version that doesn't include the resolver.","error":"ModuleNotFoundError: No module named 'sceptre.cmd_resolver'"},{"fix":"Use: from sceptre.cmd_resolver import CmdResolver","cause":"Incorrect import path; the resolver might have been renamed.","error":"ImportError: cannot import name 'CmdResolver' from 'sceptre.cmd_resolver'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}