How to run a command via AWS SSM with live output
This little technique is a great example of how simple *nix utilities can be (mis)used to accomplish some interesting things: (echo "./deploy.sh" && cat && exit && exit) | \ aws ssm start-session --target $INSTANCE_ID This: Echos the command into the shell session once started (echo "./deploy.sh" - obviously whatever command you want to run goes here) Runs cat to...