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: Pass parameters between Lambdas - Amazon Web Services (AWS) Tutorial
From the course: AWS for Developers: Step Functions
Challenge: Pass parameters between Lambdas
- (upbeat electronic music) - [Instructor] Are ready for a challenge? Let's get into it. So right now if I click here where it says In-transit Estimate we notice that it is different colors, not green, we have a problem here. Because now we have this input that says distance to Lambda and it has the distance that we calculated. But the problem is that's not where it's being expected by the choice state. So we scroll down here, let me see, we go down to the bottom where it says Execution Failed, and I open it. You'll see an error message that says, $ which is our input document .payload.body.distance, it appears to be invalid 'cause it cannot find it anymore. Since we added the output of the Lambda to a new note. So for the challenge, I need you to update the function so that the choice state can find the output of the Lambda where it is now, that's number one, number two, instead of ending right away after…
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.