Skip to content

RolandOtta/sceptre-resolver-cmd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sceptre shell command resolver

This resolver can be used to execute any shell command.

Why?

This resolver is handy, because it allows you to dynamically resolve parameters at runtime. The beautiful thing about it is that it's infintely extensible! You can use it to connect any command line tool to Sceptre.

Use it in conjunction with the typical unix tools (cat, cut, grep etc...) or third party ones (vault, op, etc...)

Use the !cmd tag to activate the resolver. You can also use pipe commands, and generic bash (maybe powershell too but I haven't tried it).

Installation

pip install git+https://github.com/lukeplausin/sceptre-resolver-cmd.git

Usage / Examples

Use the !cmd tag to activate the resolver. You can also use pipe commands, and generic bash (perhaps even powershell but I haven't tested it).

# Resolve the contents of a file with cat
parameters:
  DatabasePassword: !cmd cat .env/dev/password
# Resolve data from a json file with cat + jq
parameters:
  DatabasePassword: !cmd cat .env/data | jq -r '.Passwords.dev'
# Resolve a secret in vault using the vault CLI (you must be logged in!)
parameters:
  DatabasePassword: !cmd vault kv get -field=password myapp/database/dev
# Add a human readable comment with the deployment date
parameters:
  DeployNote: !cmd echo "Deployed with love by `whoami` on `date`."

About

Sceptre resolver which lets you execute ANY shell command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 73.8%
  • Makefile 26.2%