Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
API Gateway HTTP API について
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
acomagu
April 24, 2020
Technology
160
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
API Gateway HTTP API について
acomagu
April 24, 2020
More Decks by acomagu
See All by acomagu
サーバーレスから Durable Execution へ
acomagu
0
33
Payment Records API を使って地域通貨を Stripe Dashboard に統合してみた
acomagu
0
75
Restate x Stripe: 安心して眠れる決済システムを目指して
acomagu
0
19
Stripe SSoT をするべきか否か
acomagu
0
91
JP_Stripes: リコンサイル(突合処理)のテスト
acomagu
0
130
「境界付けられたコンテキスト間の関係」についてもっと語ろう
acomagu
0
190
地方 MaaS 事例: アプリの進化に伴って変化してきた Stripe 利用方法
acomagu
0
680
Stripe リコンサイルの勘所
acomagu
0
540
CDK 一発で全てのエラーログを Slack に流す
acomagu
0
2.3k
Other Decks in Technology
See All in Technology
Where Is JetBrains AI Heading- — Central CLI, Air Alpha, and the Agentic Development Stack
x5gtrn
PRO
0
130
Bet AI Day 2026丨AIによって本質に戻るシステムリスク管理
layerx
PRO
0
1.1k
Sigmaユーザーのための有用リソース一挙公開 & Sigmaで使えるMCP #sigma_ucj /useful-resources-for-sigma-computing-users-and-mcps-with-sigma
shinyaa31
0
130
動画配信アプリでの Engage SDK 導入 — TVer Android が Play ストアにコンテンツを届けるまで
techtver
PRO
0
120
AndroidでHDRメディアを「壊さずに」扱う
chigichan24
0
410
AIで開発は速くなったのに、なぜ現場は楽にならないのか 〜あなたの組織のボトルネックを突き止めるワークショップ〜
jacopen
1
270
こんなアーキテクチャ図は嫌だ BEYOND THE TIME: 半年後の自分へ贈る15のメッセージ / 15 of Anti-pattern in AWS Architecture Diagrams
naospon
3
250
ペアプロの価値はコードを書くことだけじゃない
codmoninc
PRO
0
110
When Does a Local Qwen Start to Break
morshoto
0
180
V8コントリビュート超入門
riyaamemiya
0
140
DINO-EdgeQuery:Edge-First Polygon Decoding for Building Footprint Extraction from Satellite Imagery
lehupa
0
150
はじめてのDatabricks:技術者向けワークショップ / beginner-workshop
databricksjapan
PRO
0
230
Featured
See All Featured
Become a Pro
speakerdeck
PRO
31
6.2k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
690
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
820
Practical Orchestrator
shlominoach
191
12k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
Navigating Weather and Climate Data
rabernat
0
510
How to Talk to Developers About Accessibility
jct
2
540
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
240
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.2k
エンジニアに許された特別な時間の終わり
watany
108
250k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Statistics for Hackers
jakevdp
799
230k
Transcript
HTTP API について 200424 Y会 @acomagu
2020 3月 GA!
HTTP API とは API Gateway REST API の再定義 REST API
から減った機能と増えた機能がある(だいたい減ってる)
REST API から減った機能 認証: - Lambda カスタム Authorizer - IAM
Authorizer - API キー 統合: - プロキシじゃない統合 - モック統合
REST API から減った機能 その他: - TLS 1.0 - キャッシュ -
リクエスト変換/マッピング - エッジ最適化 API
Before
After
じゃあ何の機能があるの? - HTTP プロキシ統合 - Lambda プロキシ統合 - TLS 2.0
- リージョン別 API
じゃあ何の機能があるの? - HTTP プロキシ統合 - Lambda プロキシ統合 - TLS 2.0
- リージョン別 API - JWT Authorizer - CORS - 自動デプロイ - デフォルトステージ
JWT Authorizer - JWT の検証と Audience の確認をしてくれる Authorizer - そのまま
OIDC/OAuth2 の Access Token や ID Token の検証に使える! - Auth0 の設定がガチ簡単に - (今までカスタム Lambda 関数を作成する必要があったが...)
←ヘッダ名 ←Auth0 Domain ←Auth0 ClientID
CORS REST API の CORS 機能は、プロキシ統合を利用している場合プリフライトリクエストに しか対応できなかった (例えば Lambda 関数内で
access-control-allow-origin 等を設定する必要 があった)
CORS HTTP API では Lambda プロキシ統合のレスポンスにもヘッダを自動で付与できるよう になった
自動デプロイ オンにすると API Gateway の設定を変更したときに自動でデプロイされる
デフォルトステージ “$default” という名前のステージを作ると URL の /prod/ を消せる
神
HTTP API のよくないところ - AWS CDK の High Level Construct
に対応していない - serverless の対応はわからない、sam はいい感じらしい - nexto-store のリポジトリに CDK でいい感じに使うラッパがあります - ぐぐらびりてぃが低すぎる
ありがとうございました