У нас вы можете посмотреть бесплатно How To: Lambda With Step Functions (3 Min) | AWS | Design Visual Workflow State Machine или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In this tutorial, you'll learn how to invoke lambda function from AWS Step functions using the visual workflow editor to create a state machine. — Facebook: / gokcedbsql — Video Transcript: _ Hi guys, this is Abhi from Gokcedb. In this video, you're going to learn how to invoke a Lambda function using step functions in AWS. Let's start by navigating to the Lambda console then click on create function and give it a name. Choose Python for runtime then hit create function. In the code Source section, I'm just going to print and return the event as is then hit deploy. Click on the test then give your test event a name. Hit save then click test again to execute your Lambda function. Looks like our Lambda function is working as expected. Now, let's navigate to the step functions console and then get started. Click on state machines then click on create a State machine. Choose to design your workflow visually then hit next. Drag the Lambda icon to the workflow then select the Lambda function that we just created. I'm going to leave everything else to default and then navigate to the flow tab. Drag the choice icon below Lambda invokes then edit rule 1. Click on ADD conditions and specify not of dollar dot key one matches the string of true then hit save. Next, drag the fail icon below Row one. So now our workflow will fail if the key one value is not set to true. Let's add one more row and click on ADD conditions. This time, I want the key one value to be true, so I'm not going to specify the not operator. Hit save and drag the success icon below rule 2. Let's clear the default rule then hit next. Review generated code hit next then click on create a State machine. Click on start execution then specify a value of true for key one then click on start execution again. Looks like our State machine was executed successfully. Let's do another execution and this time specify a value of false for key one and hit start execution. This time our execution failed as expected because the key one value was not sent to true. There you have it. Make sure you like, subscribe, and turn on the notification bell. Until next time.