Retries on Errors
Event SourceModel Invocation Type Retries on Errors
Amazon S3 Non-stream Async Up to 3 times.
Amazon Kinesis Streams Stream-based Sync Until data expires.
Amazon DynamoDB Stream-based Sync Until data expires.
Amazon Simple Notification Service Non-stream Async Up to 3 times.
Amazon Echo (Alexa) Non-stream Sync Return 429 error.
Amazon CloudWatch Logs Non-stream Async Up to 3 times.
AWS CloudFormation Non-stream Async Up to 3 times.
Amazon Cognito Non-stream Sync Return 429 error.
AWS IoT Non-stream Async Up to 3 times.
Amazon CloudWatch Events Non-stream Async Up to 3 times.
Scheduled Event Non-stream Async Up to 3 times.
Amazon API Gateway Non-stream Sync Return 429 error.
Amazon Simple Email Service Non-stream Async Up to 3 times.
AWS Config Non-stream Async Up to 3 times.
Custom Event Non-stream Sync/Async Return 429 error / Up to 3 times.
Amazon API GatewayFAQ
✤ AWS WAFを使いたい
✤ API GatewayをオリジンとしてCloudFrontを使⽤することで利⽤可能です。た
だし、POPが2段になるためレイテンシを考慮する必要があります。
✤ カスタムドメイン⽤にAWS Certificate Managerを使いたい
✤ 現時点ではAPI GatewayはACMで発⾏する証明書に対応していません。ただし、
API GatewayをオリジンとしてCloudFrontを使⽤することで利⽤可能です。た
だし、POPが2段になるため(ry
34.
Amazon API GatewayFAQ
✤ エンドポイントへのアクセスに地域による制限をかけたい
✤ API Gateway⾃⾝には機能はないですがバックエンド側のロジックでチェック
をして弾く、もしくはAPI GatewayをオリジンとしてCloudFrontを使⽤するこ
と(ry
✤ API Gatewayのエンドポイントをサブドメインで振り分けて提供した
い(api.example.com, img.example.comのように)
✤ API GatewayをオリジンとしてCloudFrontを(ry
✤ HTTPでリクエストを受けたい
✤ API Gatewayをオリジン(ry
35.
API Gatewayの⼿前にCloudFrontを利⽤する
✤ APIGateway⾃⾝もCloudFrontを利⽤してディストリビューションさ
れていますが、CloudFrontの設定は変更不可となっています
✤ API Gatewayでの利⽤はDDoSプロテクション(L7, L3およびSyn flood)が⽬
的
✤ CloudFrontをAPI Gatewayの前段で利⽤することでCloudFrontの持つ
機能を活かすことが可能となります
✤ ただし、API GatewayのPOPに加えて2段階となるため多少とはいえレイテン
シを考慮する必要はあります
POP
POP
(API Gatewayが利⽤)