【问题标题】:How to combine AWS API Gateway and Step functions to provide Restful API Service如何结合 AWS API Gateway 和 Step 函数提供 Restful API 服务
【发布时间】:2017-03-24 04:08:29
【问题描述】:

我在 AWS API Gateway 中部署了一个 GET 方法,然后将其与 AWS Step Functions 集成为后端。

问题是与 Step Functions 的集成只允许通过 Http“Post”方法。

这意味着我将输入设置为 Step Functions,但无法获取 Step Functions 的输出。

有没有人想办法解决这个问题?非常感谢

【问题讨论】:

  • 你能提供你的用例为什么你想要这个吗?这似乎不是一个合理的方法。

标签: aws-api-gateway aws-step-functions


【解决方案1】:

好吧,你可以像我一样做,使用 Lambda 函数调用 step 函数并从 Lambda 函数中返回它的结果,如果它在不到 30 秒内运行。

看起来像这个 API Gateway Lambda Step function

https://stackoverflow.com/a/41773504/7243001

【讨论】:

  • API 网关将在约 30 秒时超时请求。我认为到那时还不会执行 step 函数。
猜你喜欢
  • 2018-07-13
  • 1970-01-01
  • 1970-01-01
  • 2017-12-11
  • 2017-08-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-08-24
相关资源
最近更新 更多