问题来自 Step Function 的 AppSync 突变?
是否可以直接从 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将需要 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.