LoginSignup
1
1

More than 3 years have passed since last update.

API GatewayのCustom AuthorizerのLambda関数が呼ばれない

Posted at

cdkを使ってREST APIを構築しています。
API Gatewayの認証にLamdba関数をカスタムAuthorizerとして使用していたところ、あるタイミングで突然認証が通らなくなってしまった。

現象

  • カスタムオーソライザーのテスト機能では正しく動く(Lambda関数も実行される)
  • Postmanからのリクエストでは認証のためのLambda関数がそもそも動かない

手動でAPIをマネジメントコンソールからデプロイしたところ動くようになりました。
https://stackoverflow.com/questions/52549538/aws-api-gateway-custom-authorizer-not-invoked

cdkのバグなのかな?
開発初期は上手くデプロイできたと思うんだけど、何かの変更が反映されないのか。。。
謎い。

それにしてもハマった。

1
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1