API网关+ AWS SageMaker - 用于集成的 AWS ARN 包含与 sagemaker 集成的无效操作
如 AWS 的此博客,我创建了一个角色来调用 sagemaker 端点。但是,当我将 API 部署到某个阶段时,我收到“用于集成的 AWS ARN 包含无效操作”,并且无法部署该阶段。
博客建议在services下选择API Gateway并继续下一步,但没有提及将附加哪些策略。还有另一个内联策略来调用要创建和附加的特定 sagemaker 端点。
以及 AWS 文档:
它还必须声明 API 网关(在角色的信任中) 关系)作为可信实体来承担该角色。
我的角色缺少什么导致了错误?
As mentioned in step-3 of this blog by AWS, I have created a role to invoke sagemaker endpoint. But, when I deploy the API to a stage, I get "AWS ARN for integration contains invalid action" and I can't deploy the stage.
blog suggested to select API Gateway under services and to keep on next, but didn't mention which policy will be attached. and also that another inline policy to invoke a specific sagemaker endpoint to be created and attached.
and as mentioned in AWS Docs:
It must also have API Gateway declared (in the role's trust
relationship) as a trusted entity to assume the role.
my role also have the trust-relationshp:
What's missing in my role that led to the error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查您尚未为任何集成请求指定“使用操作名称”的所有 API 方法,然后将“操作”字段留空。如果您这样做,将显示“用于集成的 AWS ARN 包含无效操作”错误消息。
Check in all your API methods that you haven't specified "Use Action Name" for any integration request, and then left the "Action" field blank. If you do the "AWS ARN for integration contains invalid action" error message will be shown.