Api gateway get output results from step function?

后端 未结 4 1979
别那么骄傲
别那么骄傲 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:33

    AWS Step Functions are asynchronous and do not immediately return their results. API Gateway methods are synchronous and have a maximum timeout of 29 seconds.

    To get the function output from a Step Function, you have to add a second method in API Gateway which will call the Step Function with the DescribeExecution action. The API Gateway client will have to call this periodically (poll) until the returned status is no longer "RUNNING".

    Here's the DescribeExecution documentation

提交回复
热议问题