aws-api-gateway-share
在使用 api gateway 搭配 lambda 的情形中,常會遇到前端用同一組 custom domain name,不過後端需要介接不同的 serverless lambda project
目前我的作法是將 ApiGatewayRestApi & RootResourceId share 出來,提供給不同的 lambda project 使用
Reference
- Share API Gateway and API Resources 官方說明
- How to share an API domain between services in a monorepo Serverless app 滿完整的兩種做法介紹,目前是以 Method 2: Single API Gateway Project 方式來實作
- Shared API Gateway (2017-11-11)