问题来自 Step Function 的 AppSync 突变?

发布于 2025-01-13 14:14:07 字数 80 浏览 3 评论 0原文

是否可以直接从 Step Function 发出 AppSync 突变?希望避免为这一任务创建 Lambda 函数。我觉得我错过了一些简单的东西。

Is it possible to issue an AppSync mutation directly from a Step Function? Looking to avoid creating a Lambda function for this one task. I feel like I'm missing something simple.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我做我的改变 2025-01-20 14:14:07

您将需要 Lambda 任务,除非 GraphQL 服务通过 API 网关端点公开。

当然,“发出 AppSync 突变”意味着“发出 HTTP POST 请求”。遗憾的是,Step Functions 不支持发出任意 POST 请求。 Step Functions 确实与 ApiGateway< 进行了优化集成/a> 仅向 API 网关端点发出带有自定义标头的授权 POST 请求。

You will need a Lambda Task, unless the GraphQL service is exposed via a API Gateway endpoint.

"Issue an AppSync mutation" means "make a HTTP POST request", of course. Alas, there is no native Step Functions support to make arbitrary POST requests. Step Functions does have an optimised integration with ApiGateway to make authorised POST requests with custom headers only to API Gateway endpoints.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文