This works, problem that I'm having is it's not reliable. Sometimes my CI system will show that it succeeded successfully, but in reality it failed to re-deploy.
Running off the inspect state is unreliable, but aside from using the event and figuring out how to parse the stream i'm at a loss for an easy way to do it.
I have a bash script, which my CI system is using to redeploy an environment. Script located: https://gist.github.com/jblac/b79e549ecb282175d07451ebe189aac1
This works, problem that I'm having is it's not reliable. Sometimes my CI system will show that it succeeded successfully, but in reality it failed to re-deploy.
Running off the inspect state is unreliable, but aside from using the event and figuring out how to parse the stream i'm at a loss for an easy way to do it.