API Gateway sage maker end point
还没有人认领这个 Issue。
评估
调研方向
从 serverless.yaml 开始,尤其检查 ApiGatewayMethod 集成及其被注释掉的 Credentials 设置,然后跟踪所引用的 ApiGatewayRestApi、ApiGatewayResource 和 deployment 资源。将配置与报告的 API Gateway 错误以及 SageMaker 端点要求进行比较;完成的标准是示例能够成功部署并调用该端点。
由索引模型根据 Issue 内容生成。
描述
I want to create API Gateway for Sagemaker end point using serverless.yam. Its failing .
An error occurred: ApiGatewayMethod - Role ARN must be specified for AWS integrations (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException; Request ID: cb987b30-1ea1-4877-b6b9-e2817d7462b3; Proxy: null).
looks like my template is wrong...could any one help me with api gateway example
serverless.yaml
> ApiGatewayRestApi:
Type: AWS::ApiGateway::RestApi Properties: ApiKeySourceType: HEADER Description: An API Gateway with a sagemaker Integration EndpointConfiguration: Types: - EDGE Name: Rsage-api ApiGatewayResource: Type: AWS::ApiGateway::Resource Properties: ParentId: !GetAtt ApiGatewayRestApi.RootResourceId PathPart: 'sagemaker' RestApiId: !Ref ApiGatewayRestApi ApiGatewayMethod: Type: AWS::ApiGateway::Method Properties: ApiKeyRequired: false AuthorizationType: NONE HttpMethod: POST Integration: ConnectionType: INTERNET #Credentials: !GetAtt ApiGatewayIamRole.Arn IntegrationHttpMethod: POST PassthroughBehavior: WHEN_NO_MATCH TimeoutInMillis: 29000 Type: AWS Uri: !Sub "arn:aws:apigateway:${self:provider.region}:runtime.sagemaker:path/endpoints/xgboost-2022-03-08-08-31-11-865/invocations" OperationName: 'lambda' ResourceId: !Ref ApiGatewayResource RestApiId: !Ref ApiGatewayRestApi ApiGatewayModel: Type: AWS::ApiGateway::Model Properties: ContentType: 'application/json' RestApiId: !Ref ApiGatewayRestApi Schema: { } ApiGatewayStage: Type: AWS::ApiGateway::Stage Properties: DeploymentId: !Ref ApiGatewayDeployment Description: Lambda API Stage v0 RestApiId: !Ref ApiGatewayRestApi StageName: 'v0' ApiGatewayDeployment: Type: AWS::ApiGateway::Deployment DependsOn: ApiGatewayMethod Properties: Description: RSage API Deployment
- 主要语言
- JavaScript
- 星标
- 11.5k
- 派生
- 4.4k
- 平均合并
- 2 小时 12 分钟
- 30 天内合并 PR
- 4
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
serverless/examples 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 62/100
serverless/examples#404 ·
-
难度 3/5 1-2 天 新手友好度 35/100
serverless/examples#809 ·
-
难度 2/5 1-3 小时 新手友好度 30/100
serverless/examples#793 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 20/100
serverless/examples#784 ·
-
难度 4/5 3-5 天 新手友好度 25/100
serverless/examples#782 ·
查看 serverless/examples 的全部 Issue
相似的 Issue
-
automation models
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
needs:triage
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
enhancement status: needs triage
难度 2/5 1-3 小时 新手友好度 88/100
mastra-ai/mastra#25508 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
agentic-workflows
难度 1/5 1 小时以内 新手友好度 72/100
githubnext/gh-aw-cao#15017 ·
维护者通常 1 天内回复