Bridge Function between Kinesis Streams and Step Functions
Required Environment Variables
- region: the AWS region where your StepFunction state machine is defined.
- stateMachineArn: the ARN of the StepFunction state machine you want to execute.
|# SEE YOU SPACE COWBOY by DANIEL REHN (danielrehn.com)|
|# Displays a timeless message in your terminal with cosmic color effects|
|# Usage: add "sh ~/seeyouspacecowboy.sh; sleep 2" to .bash_logout (or similar) in your home directory|
|# (adjust the sleep variable to display the message for more seconds)|
|# Cosmic color sequence|
|A generic iterator and generator that takes any iterator and wrap it to make it thread safe.|
|This method was introducted by Anand Chitipothu in http://anandology.com/blog/using-iterators-and-generators/|
|but was not compatible with python 3. This modified version is now compatible and works both in python 2.8 and 3.0|
|"""Takes an iterator/generator and makes it thread-safe by|
|serializing call to the `next` method of given iterator/generator.|