Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[functionbeat] Expose cloudformation error when waiting for status #8912
Currently, we only wait for Completed or Failed events for cloudformation; it's not the best thing for debugging. Instead, we should also monitor Stack Events and report them to the console as they appear.
This way it makes it a lot easier to debug why a stack failed to apply or not.
This was referenced
Nov 9, 2018
To simplify writing other feature I am currently working on this, The
The problem is this API actually returns all the events for a stack, are you cannot say retrieve events after a specific date, so you actually have to do something like this.
When the following match this mean we have our first relevant event
BUT, When a stack is currently in progress nextToken can be nil because we have finished reading all the current events. So we also need to keep track of events that we have already received.
I think the easiest way is to implement this:
When a stack operation is detected to be complete by the first go routine we say to the second one to stop on next event.