I am questioning my design so I was wondering what happens during cloudformation update process.
Specifically with scheduled events, basically if i have scheduled event running on every minute and stack is in update process while event triggers.
The reason I am asking this is because a single step machine as far as i know can run up to a year. Mine has a decent chance to run in a loop for an 10-15min(if i get enough users). and is triggered every minute.
I am worried about scenario:
- stack is in update
- scheduled event is triggered
- scheduled event triggers step function
- step function does half of work
- stack finished updating
- what happens with rest of step functions? does state machine gets terminated inside execution?
Is the process something like this:
- create new stack
- swap new lambdas in place of old ones for future execution
- let old code finish execution.
- delete old lambdas and step functions
Also is there a possibility scheduled event won’t get triggered during update process?