课程: AWS for Developers: Step Functions

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Solution: Pass parameters between Lambdas

Solution: Pass parameters between Lambdas

(electronic music) - [Instructor] All right, we're now ready to tackle this two-part challenge. I am going to click here on our state machine name. And bring up the latest executions. If we bring up the latest failure we're going to see that In-Transit has a problem here. Because the input now is inside DistanceLambda. Let's go ahead and fix that. Click here where it says Edit state machine. Let's look for the problem. And we're talking about the In-Transit Estimate state. Which is a Choice state. Now the variable here says $.Payload.body.distance. I'm going to change this to $.DistanceLambda. And we need to do this for all the choices available. Okay. Let's go ahead and hit Save here. We're going to verify one more time before we execute. So the new input for this particular state, the Choice state. Is dollar dot DistanceLambda dot Payload, dot body, dot distance. So we got that right. Perfect. Let's…

内容