2022-10-31
aws-api-gateway-private

最近在針對 api gateway 的部分,進行安全性的加強
有部分的 API 只希望給內部的 service 使用,就來用看看 private api gateway 的方法囉

Reference

Read More

2022-10-21
aws-api-gateway-waf

使用 aws api-gateway 時,前面有加一層 WAF 來進行 rate limit 是一個滿好的選擇
此篇記錄 serverless framework 加上 AWS WAF 的整合方式

Tips

Reference

同場加映

Read More

2022-08-18
lambda-custom-authorizer

近期在修改 api-gateway 中 custom authorizer 回傳的錯誤訊息。
原本是希望可以回傳 http status code 400 的錯誤,試了一段時間後。因為是以 custom authorizer 的方式實作,在 auth 中,僅能回傳 401 & 403 的錯誤

Reference

Read More

2022-08-17
api-gateway-response

Read More

2021-12-29
aws-ecs-api-gateway

用 api-gateway 為前端,來串到 ECS 中的 micro service

有關的 terraform 文件

設定 aws ecs service 時,遇到的問題

Reference

Read More

2021-11-19
aws-api-gateway-share

在使用 api gateway 搭配 lambda 的情形中,常會遇到前端用同一組 custom domain name,不過後端需要介接不同的 serverless lambda project
目前我的作法是將 ApiGatewayRestApi & RootResourceId share 出來,提供給不同的 lambda project 使用

Reference

Read More

2021-11-11
aws-api-gateway-s3

Read More

2021-11-09
aws-api-gateway-proxy

使用 api-gateway 來當 proxy 的方式,設定 integrationi type 為 HTTP_PROXY
需要設定 AWS::ApiGateway::Resource & AWS::ApiGateway::Method,當設定的 url 為多層的 (包含多個 / 的 path),需要設定多組 AWS::ApiGateway::Resource

serverless framework plugin

Reference

同場加映

  • ServerlessOperations 在看 apigateway service proxy 時,有看到是這家日本公司開發的 project,來加以關注囉
Read More

2021-11-01
aws-reverse-proxy

在 AWS 上使用 managed reverse proxy 方式

  • AWS Amplify Console
  • API Gateway
  • Amazon CloudFront with Lambda@Edge

Reference

Read More

2021-01-14
aws-api-gateway-401

最近遇到一個 api-gateway 回 401 的情形,追查之後覺得有可能是 identity sources 傳空值造成的

  • For request parameter-based authorizers, the error generally occurs when configured identity sources are missing, null, empty, or invalid.

Reference

Read More