This is a sample project to use map state in a state machine to loop through a list of events and invoke a Lambda to process them and store the erros events in a SQS queue. In the subsequest run the Lambda receives the error events from the SQS to retry the processing. The entire stack is created using AWS SAM.