We have created a simple step function in AWS , via synchronous invocation :
When I click "Start Execution", I do see that the flow is Synchronous , with the expected result:
However, When I attach this step function to a proxy APIGATEWAY via :
I do not see the expected result. I only see this :
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