使用 api-gateway 來當 proxy 的方式,設定 integrationi type 為 HTTP_PROXY
需要設定 AWS::ApiGateway::Resource
& AWS::ApiGateway::Method
,當設定的 url 為多層的 (包含多個 / 的 path),需要設定多組 AWS::ApiGateway::Resource
serverless framework plugin
- serverless-operations/serverless-apigateway-service-proxy: This Serverless Framewrok plugin supports the AWS service proxy integration feature of API Gateway. - This Serverless Framewrok plugin supports the AWS service proxy integration feature of API Gateway.
Reference
- Setting an HTTP Proxy on API Gateway serverless framework 說明文件
- Tutorial: Build a REST API with HTTP proxy integration - Amazon API Gateway ** 手動建立的文件,可以先用這份來嘗試
- Build an API with HTTP Proxy via Serverless | by Kithmal Warnasooriya | Medium 主要參考文章
- Setting an HTTP Proxy on API Gateway by using Serverless framework. 主要參考文章
- Working with routes for HTTP APIs - Amazon API Gateway routing 的順序
- Amazon API Gateway: Explaining HTTP Proxy in HTTP API | by Jaewoo Ahn | Sep, 2021 | Medium
同場加映
- ServerlessOperations 在看 apigateway service proxy 時,有看到是這家日本公司開發的 project,來加以關注囉