From api gateway step function executed -> step function invokes a lambda function. we can directly call a lambda from api gateway through lambda proxy integration so what is the usecase of this please
Hello Hammo Ithin, your point is correct that in this case , if we trigger AWS Lambda directly using API Gateway , we would have received same outcome but here the main motive of this video to explain how to trigger a step function using API Gateway , so I took a very simple step function containing a simple lambda function , you can trigger very complex workflows (created using AWS Step & having multiple steps) also using the same approach ...
You can try one way (there might be some better way Puneet) , once the on-prem job is finished , you can call api (created using API Gateway) from on-prem ETL tool , the api will trigger AWS Step Function as explained in this video ... And to get info whether the Step Function executed successfully or not , you can send notification in the last step of Step Function 🙂
You save me for the second time bro. It's time for me to subscribe now😁😁😁😁😁
😅Glad to hear the video is helpful to you Ousseynou Ngom! Happy Learning
can the api return the output of the stepfunction to the caller?
What is the best options to call API EP without passing stateMachineArn ARN in API Request body?
straight to the point -- well explained
Thank you ph2h com! Happy Learning
From api gateway step function executed -> step function invokes a lambda function.
we can directly call a lambda from api gateway through lambda proxy integration
so what is the usecase of this please
Hello Hammo Ithin, your point is correct that in this case , if we trigger AWS Lambda directly using API Gateway , we would have received same outcome but here the main motive of this video to explain how to trigger a step function using API Gateway , so I took a very simple step function containing a simple lambda function , you can trigger very complex workflows (created using AWS Step & having multiple steps) also using the same approach ...
any idea on how to trigger a step function when an ETL(informatica) on prem job completes?
You can try one way (there might be some better way Puneet) , once the on-prem job is finished , you can call api (created using API Gateway) from on-prem ETL tool , the api will trigger AWS Step Function as explained in this video ...
And to get info whether the Step Function executed successfully or not , you can send notification in the last step of Step Function 🙂
Simple and accurate
Thank you Ousseynou Ngom! Happy Learning
when i print(event) it prints {} emtpy backets
Aryaman Tyagi, are you sending data/payload with the post request?
instead of post can we use get??
No, only the POST method is allowed as we have to pass the stateMachineArn through the request body from API Gateway
🙏🙏🙏