Api gateway get output results from step function?

后端 未结 4 1984
别那么骄傲
别那么骄傲 2020-12-14 19:07

I followed tutorial on creating and invoking step functions

I\'m getting output in my GET request of api as

 {
  \"executionArn\": \"arn:aws:states:         


        
4条回答
  •  不思量自难忘°
    2020-12-14 19:29

    Expanding on what @MikeD at AWS says, if you're certain that the Step Function won't exceed the 30 second timeout, you could create a lambda that executes the step function and then blocks as it polls for the result. Once it has the result, it can return it.

    It is a better idea to have the first call return immediately with the execution id, and then pass that id into a second call to retrieve the result, once it's finished.

提交回复
热议问题