0

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) ?

Royi Namir
  • 144,742
  • 138
  • 468
  • 792

1 Answers1

1

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

Ervin Szilagyi
  • 14,274
  • 2
  • 25
  • 40