Home > Blockchain >  Synchronous Invocation of AWS APIGATEWAY to a Step Function?
Synchronous Invocation of AWS APIGATEWAY to a Step Function?

Time:10-31

We have created a simple step function in AWS , via synchronous invocation :

enter image description here

When I click "Start Execution", I do see that the flow is Synchronous , with the expected result:

enter image description here

However, When I attach this step function to a proxy APIGATEWAY via :

enter image description here

I do not see the expected result. I only see this :

enter image description here

Question:

How can I make the Apigateway to wait for the step function invocation (Synchronously) ?

CodePudding user response:

In order to have a step function being invoked synchronously, you might need to use a Step Function with an Express workflow. On the API Gateway side you need an Integration Request with the Action set to StartSyncExecution.

This answer goes in-depth how to set-up the integration between the API Gateway and the Express Step Function: source

  • Related