So I'm writing a load of infrastructure automation stuff atm, mainly revolving around Cloudformation, and I have a wrapper/framework tool that I'm using to manage the CF deploys (Sceptre). I've run up against a task that is not supported by CF, but is necessary for task completion and I'm tired of adding in manual intervention steps halfway through tasks. So what I'd like is a way to trigger commands when a specific command is run. For example:
sceptre create-stack example mystack
And I have an aws cli command to trigger when someone runs this.
aws module command --option=lol
EDIT: If someone has a linux native way of doing it, please provide it, I'd like to understand the multiple ways I could have completed this task.