AWS Step Functions Tutorial Setting up and API Gateway | FooBar

preview_player
Показать описание
Tutorial on how to use AWS Step Functions with Serverless Framework, AWS Lambda and API Gateway

★★ README / OPEN ME ★★

☆☆ ABOUT THIS VIDEO ☆☆
In this tutorial explain how to create a basic AWS Step Function state machine and how to trigger it using API Gateway from outside AWS.

#serverless #foobar #awslambda #awsstepfunction #apigateway

☆☆ FOLLOW ME ONLINE ☆☆

☆☆ ABOUT FOOBAR ☆☆
In this channel you can find mostly coding tutorials. In addition, I like also talking about architecture, software design, motivation and leadership. But sometimes I like to drop some of my hobbies into the channel.
There is a new video every Tuesday, so stay tuned :)

Рекомендации по теме
Комментарии
Автор

If you want to find a newer version of this content check these videos:


AWS STEP FUNCTIONS WITH AWS SAM (Define your state machines with infrastructure as code)

foobar_codes
Автор

Great video. I normally cannot be bothered to keep going into aws to check the logs, so I use the following function:


sls logs -f <functionname>

Also if you do not edit the yaml file, you can just deploy the functions instead and this will be faster.

To clarify, you used API gateway to initialise a lambda, this lambda then initialised a step function which can have x amount of lambdas. A good use case for this, is if you want to trandform your data, but on certain conditions.

E.g.

Client will either send you thumbnails, or large images.

If thumbnail, then compress and store in s3

If large, then reduce size, then compress and store.

A trivial case, but using step functions can help for those who cannot find a use case.

kwopltd
Автор

Excellent video. Thanks for the giving a great overview of the context at the beginning - lots of people skip that! Subscribed.

bberakable
Автор

Marcia, excellent tutorial. I would like to mention that I was still getting the AccessDenied error when I added the permissions for the lambda in the yml file. I added the policy "AWSStepFunctionsFullAccess" into the lambda role and the error was gone. Thanks for these amazing videos! I'm new with AWS and your content helped me a lot. Greetings from Argentina!

nadiaujovich
Автор

Brilliantly explained. Keep up the good work

codenjourney
Автор

Best tuto aout step functions I ever see. You deserve 11000 likes! I want a more complicated process. Could you?

igoralves
Автор

Foo Bar, thanks for the video, it was very helpful getting me going. I think the reason that the "input" field was failing when you had it as a blank was because it is expecting a string of JSON, so "{}" would work but not "", fyi

contractorwolf
Автор

Oh you're just a goddess !!! Thanks so much !

zemiorka
Автор

Hi Foo Bar,

I am trying to understand how Step functions is a State machine. To me it looks like an execution planning service. A state machine is having following properties:
1. There is a relation (S, E) -> (A, S1) means when in State S and Event E occurs, then, execute Action A and move to State S1
2. State machine is in 1 state at any time.

But looks like Step functions state machine can be in multiple states. Example Parallel where 1 success execution of Lambda functon F1 can trigger N different lambda functions. In this case the Step function state machine is in which state ?

So is it right to call this as a state machine ?

manujbhallaindia
Автор

Thanks for the video, instead of aws console, do you know how to configure step functions in serverless.yml?

arunaithal
Автор

hi,
i'm Vamse. thanks for your efforts and your time for explaining about step functions with api gateway. but i have a different scenario about file upload and process the file while lambdas or step function does it i would like show the status of things like file uploaded and next task checking for data validation etc. My very question is that how can do it using step functions or if you have any idea please let me know.
Thanks,
Vamse.

kvamsij
Автор

One question: I know this is an example but since you are using lambda wouldn't be better to import the aws-sdk like this: const StepFunctions = to avoid bring the all package? Thanks

matteogioioso
Автор

Thanks for the video, was very helpful!!

pablomarrero
Автор

Can you please Help us with a video that explains the Inputs and Outputs from Step Function to AWS Lambda?

Fidellio
Автор

Hey it's very useful for us...thanks you very....can you please share the lambda and yaml document you used here

legendsgame
Автор

Thanks for the video. Is it possible to do an approval process using step function? I am trying to create a workflow that have an API open to the public, it will send out an SNS email, then the user have to click the link in the email to trigger a lambda function.

RayChauWS
Автор

Hi Mam, Thanks for wonderful video can you help me out, how can i get the result from final lambda after step function execution finished

vickykumar-fbtd
Автор

So amazing! How do you learn all of this? Really admire you!

zhehou
Автор

That cat is probably AWS certified by now..

RationalJJ
Автор

Does the state machine arn remain constant or it changes with every deployment of state machine?

abhinav