We’ll try submitting different applications to see how our state machine performs.
aws lambda invoke --function-name sfn-workshop-SubmitApplication --payload '{ "name": "Spock", "address": "123 Enterprise Street" }' /dev/stdout
ApplicationProcessingStateMachine-xxxxxxxxxxxx/
aws lambda invoke --function-name sfn-workshop-SubmitApplication --payload '{ "name": "Spock", "address": "ABadAddress" }' /dev/stdout
aws lambda invoke --function-name sfn-workshop-SubmitApplication --payload '{ "name": "UNPROCESSABLE_DATA", "address": "123 Street" }' /dev/stdout
Congratulations on completing the workshop, we have a well-structured state machine to manage the processing of new registrations for a simple banking system. If desired, we can add one more step in our workflow to handle even more detailed logic related to opening a bank account for approved applications. Hopefully, through this workshop, you have gained the necessary experience to continue to develop applications on your own with AWS Step Functions.