From the course: AWS for Developers: Step Functions
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Error handling - Amazon Web Services (AWS) Tutorial
From the course: AWS for Developers: Step Functions
Challenge: Error handling
(upbeat music) - [Instructor] Okay, so we have reached our last challenge, and we're going to make it a really interesting one. For the challenge, you're going to use the provided Lambda function that is in your exercise files, and we're going to create a task to call this function. We already have the placeholder that we did, which is the past state at the bottom. We're going to replace that with a call to this Lambda. I want you to add a timeout handler to this particular state because you will need the timeout logic to respond to potential timeout situations. The same can be said about adding a retry logic and catching errors. The part that I haven't told you yet is that this function, I've designed it in such a way that it will generate timeouts and it will generate errors at random. So this function is going to be great because it's actually going to trigger this error handling functionality that we're going to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.