gpt4 book ai didi

amazon-web-services - 如何使用 API 网关调用 AWS 步骤函数?

转载 作者:行者123 更新时间:2023-12-04 13:37:11 25 4
gpt4 key购买 nike

根据亚马逊的文档,可以使用 HTTP API 调用 step 函数。

Step Functions can be accessed and used with the Step Functions console, the AWS SDKs, or an HTTP API.



我试图搜索详细信息,但似乎找不到任何好的信息。有谁知道如何使用 API 网关调用 AWS 步骤函数,类似于调用 Lambda 函数的方式?

最佳答案

如果您需要从 API Gateway 调用 StepFunction,现在可以实现并在文档中进行了很好的描述:https://docs.aws.amazon.com/step-functions/latest/dg/tutorial-api-gateway.html

  • 对于集成类型,选择 AWS Service
  • 对于 AWS 服务,选择 Step Functions来自列表
  • 对于 HTTP 方法,选择 POST来自列表
  • 对于操作类型,选择 Use action name
  • 对于操作,输入 StartExecution
  • 对于执行角色,输入角色的 ARN 和 API Gateway可信身份提供者和附加策略 AWSStepFunctionsFullAccess
  • 关于amazon-web-services - 如何使用 API 网关调用 AWS 步骤函数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41113666/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com