API Gateway REST Deployer
Mindset — layered security and contract model (snapshot deployments, API keys are not authentication, REST vs HTTP are different products): references/advanced-patterns.md.
Quick reference — deployment checklist
| Dimension |
Requirement |
Step |
| API type |
REST (v1) or HTTP (v2) based on feature requirements |
Step 1 |
| Endpoint type |
EDGE / REGIONAL / PRIVATE (REST); REGIONAL (HTTP) |
Step 2 |
| Resource/method |
Path segments as resources, verbs as methods per resource |
Step 3 |
| Integration |
AWS_PROXY (Lambda proxy), AWS (direct), HTTP, HTTP_PROXY, MOCK |
Step 4 |
| Authorization |
AWS_IAM, COGNITO_USER_POOLS, CUSTOM (Lambda), NONE (rare) |
Step 5 |
| Usage plan + API keys |
Per-consumer throttling (rate + burst) + quotas |
Step 6 |
| Stage throttling |
Account/stage-level rate + burst defaults |
Step 7 |
| WAFv2 Web ACL |
Associated with stage (REGIONAL scope for REST API) |
Step 8 |
| VPC Link |
For NLB-backed private integrations |
Step 9 |
| Mapping templates |
Velocity templates for request/response transform |
Step 10 |
| Canary deployment |
Percentage-based traffic shifting for safe releases |
Step 11 |
| Access logging |
JSON format with context variables to CloudWatch |
Step 12 |
| Custom domain |
ACM cert + base path mapping |
Step 13 |
| Stage variables |
Per-stage config (function ARN, endpoint URL) |
Step 14 |
Pre-flight: deployment specification gate (run before architecture output)
Before producing the deployment plan, validate the input specification.
Several requirements block deployment — proceeding with an invalid
spec produces a non-functional or insecure API.
Live-account pre-flight checks (IAM permissions, Lambda function and invoke permission, NLB multi-AZ, Cognito user pool, ACM cert region): references/diagnostic-commands.md.
| Attribute |
Value |
Effect on plan |
protocolType |
REST (v1) |
Full feature set. Use for usage plans, mapping templates, resource policies, EDGE. |
protocolType |
HTTP (v2) |
Simpler, cheaper. JWT or IAM auth only. No mapping templates. REGIONAL only. |
endpointType |
EDGE |
Routes through CloudFront. Source IP visible to backend is CloudFront. ACM cert must be us-east-1. |
endpointType |
REGIONAL |
Public regional endpoint. ACM cert in API region. Default for HTTP API. |
endpointType |
PRIVATE |
Only reachable via interface VPC endpoint. Use VPC endpoint policy for access. |
| Authorization |
AWS_IAM |
Sigv4-signed requests. Good for service-to-service. |
| Authorization |
COGNITO_USER_POOLS |
JWT from Cognito. Good for user-facing apps. |
| Authorization |
CUSTOM (Lambda) |
Flexible — request or token authorizer. |
| Authorization |
NONE |
Public. Acceptable ONLY for health checks or public endpoints. |
If the deployment spec is incomplete (missing API type, integration,
or authorization model), output:
API_SPEC: <name-or-unknown>
VERDICT: PREREQUISITES_MISSING
REASON: Deployment specification is missing required fields (<list>).
Cannot produce a deployment plan without <field> — the resulting API
would be non-functional or insecure.
REQUIRED:
- api_type (REST or HTTP)
- endpoint_type (EDGE / REGIONAL / PRIVATE)
- integration_type (AWS_PROXY / AWS / HTTP / HTTP_PROXY / MOCK)
- authorization (AWS_IAM / COGNITO_USER_POOLS / CUSTOM / NONE)
- resource_method_layout (paths and verbs)
Process — Architecture planning (apply in order, produce deployment plan)
Step 0: Expert knowledge — non-obvious API Gateway behaviors that change the plan
Step 0 expert knowledge — non-obvious behaviors that change the plan (changes not live until create-deployment, API keys are not authentication, ANY/{proxy+} dangers, dormant usage plans, shared account throttle, EDGE client IP, WAF per-IP rules, VTL mapping templates, NLB-only VPC Link, stage variables, canary traffic shifting, JSON access logging, custom domains): references/advanced-patterns.md.
Step 1: API type selection — REST (v1) vs HTTP (v2)
Step 1 decision detail — REST (v1) vs HTTP (v2) comparison matrix, decision rule, and migration notes: references/rest-vs-http-api-guide.md.
Step 2: Endpoint type
| Type |
Reachability |
Use case |
EDGE |
Global via CloudFront |
API consumed from multiple regions, low latency worldwide. ACM cert must be in us-east-1. |
REGIONAL |
Public regional endpoint |
Default. API consumed from same region. ACM cert in API region. |
PRIVATE |
Only via interface VPC endpoint |
Internal APIs. Access controlled by VPC endpoint policy. |
HTTP API supports only REGIONAL.
Step 3: Resource and method model
REST API resources are path segments. Each resource has child
resources and methods. The root resource (/) has methods like ANY.
/ (root)
├── /users
│ ├── GET (list users)
│ ├── POST (create user)
│ └── /{userId}
│ ├── GET (get user)
│ ├── PUT (update user)
│ └── DELETE (delete user)
└── /orders
└── ANY (proxy to Lambda for all verbs)
Method configuration:
aws apigateway put-method --rest-api-id <id> --resource-id <rid> \
--http-method GET \
--authorization-type COGNITO_USER_POOLS \
--authorizer-id <authorizer-id> \
--api-key-required false
Step 4: Integration type
| Type |
When to use |
AWS_PROXY (Lambda proxy) |
Default for Lambda. Passes full request as JSON event to Lambda. Lambda returns status + headers + body. No mapping template needed. |
AWS |
Direct AWS service call (e.g., DynamoDB, SNS, SQS). Requires mapping templates for request/response format. |
HTTP |
External HTTP endpoint. Requires mapping templates if transform needed. |
HTTP_PROXY |
External HTTP endpoint, no transform. Pass-through. |
MOCK |
For testing. Returns a fixed response without calling a backend. |
Lambda proxy (AWS_PROXY):
aws apigateway put-integration --rest-api-id <id> --resource-id <rid> \
--http-method POST \
--type AWS_PROXY \
--integration-http-method POST \
--uri arn:aws:apigateway:<region>:lambda:path/2015-03-31/functions/arn:aws:lambda:<region>:<account>:function:<name>/invocations
Lambda permission for API Gateway:
aws lambda add-permission --function-name <name> \
--statement-id apigw-invoke --action lambda:InvokeFunction \
--principal apigateway.amazonaws.com \
--source-arn arn:aws:execute-api:<region>:<account>:<api-id>/*/POST/users
Step 5: Authorization
Step 5 detail — authorization model matrix plus Cognito and Lambda request authorizer creation commands: references/rest-vs-http-api-guide.md.
Step 6: Usage plans and API keys
Step 6 CLI sequences (create-usage-plan with throttle/quota, create-api-key, create-usage-plan-key, per-method apiKeyRequired): references/usage-plans-vpclink-canary-guide.md.
Step 7: Stage throttling
Step 7 CLI sequence (update-stage throttle patch-operations; method-level overrides win; burst must be <= 25% of rate): references/usage-plans-vpclink-canary-guide.md.
Step 8: WAFv2 Web ACL association
aws wafv2 create-web-acl --name prod-api-waf --scope REGIONAL \
--region <api-region> \
--default-action Allow={} \
--visibility-config SampledRequestsEnabled=true,CloudWatchMetricsEnabled=true,MetricName=prod-api-waf \
--rules file://waf-rules.json
aws apigatewayv2 associate-web-acl \
--web-acl-arn arn:aws:wafv2:<region>:<account>:regional/webacl/prod-api-waf/<id> \
--resource-arn arn:aws:apigateway:<region>::/restapis/<api-id>/stages/prod
For HTTP API (v2), use the same association — the resource ARN is
/apis/<api-id>/stages/<stage>.
Recommended rule groups: AWSManagedRulesCommonRuleSet,
AWSManagedRulesSQLiRuleSet, AWSManagedRulesKnownBadInputsRuleSet,
and a rate-based rule (e.g., 2000 requests per 5 minutes per IP).
Step 9: VPC Link for private integrations
Step 9 CLI sequence (create-vpc-link targeting an NLB, wait for AVAILABLE, connectionType VPC_LINK; NEVER target an ALB directly): references/usage-plans-vpclink-canary-guide.md.
Step 10: Mapping templates (REST API only)
Velocity templates transform request/response payloads. HTTP API does
NOT support mapping templates.
Request mapping (client → integration):
#set($inputRoot = $input.path('$'))
{
"userId": "$inputRoot.userId",
"timestamp": "$context.requestTimeEpoch",
"sourceIp": "$context.identity.sourceIp"
}
Response mapping (integration → client):
#set($inputRoot = $input.path('$'))
{
"status": 200,
"data": $inputRoot.items
}
Common $context variables:
$context.requestId, $context.stage, $context.httpMethod,
$context.resourcePath, $context.sourceIp, $context.identity.userAgent,
$context.responseLatency, $context.status, $context.error_message.
Step 11: Canary deployments
Step 11 CLI sequence (canary percentTraffic / deploymentId / useStageCache; promote at 100%): references/usage-plans-vpclink-canary-guide.md.
Step 12: Access logging
aws apigateway update-stage --rest-api-id <id> --stage-name prod \
--patch-operations \
op=replace,path=/accessLogSettings/destinationArn,value=arn:aws:logs:<region>:<account>:log-group:prod-api-access \
op=replace,path=/accessLogSettings/format,value='{"requestId":"$context.requestId","ip":"$context.identity.sourceIp","caller":"$context.identity.caller","user":"$context.identity.user","requestTime":"$context.requestTime","httpMethod":"$context.httpMethod","resourcePath":"$context.resourcePath","status":"$context.status","protocol":"$context.protocol","responseLength":"$context.responseLength","latency":$context.responseLatency,"errorMessage":"$context.error.message"}'
JSON format enables CloudWatch Logs Insights queries:
fields @timestamp, status, latency, ip
| filter status >= 400
| stats count() by status
Step 13: Custom domain names
REST API:
aws apigateway create-domain-name \
--domain-name api.example.com \
--regional-certificate-arn arn:aws:acm:<region>:<account>:certificate/<id> \
--endpoint-configuration types=REGIONAL
aws apigateway create-base-path-mapping \
--domain-name api.example.com \
--rest-api-id <api-id> \
--stage prod \
--base-path v1
HTTP API (v2):
aws apigatewayv2 create-domain-name \
--domain-name api.example.com \
--domain-name-configurations certificateArn=arn:aws:acm:<region>:<account>:certificate/<id>,endpointType=REGIONAL
aws apigatewayv2 create-api-mapping \
--domain-name api.example.com \
--api-id <api-id> \
--stage prod \
--api-mapping-key v1
ACM cert: REGIONAL API = cert in API region. EDGE API = cert in
us-east-1. HTTP API = cert in API region.
Step 14: Stage variables
Stage variables enable per-stage config. Reference in Lambda integration
URI as arn:aws:lambda:<region>:<account>:function:${stageVariables.functionName}.
Set variables via:
aws apigateway update-stage --rest-api-id <id> --stage-name prod \
--patch-operations op=replace,path=/variables/functionName,value=prod-handler
Output format (per API deployment plan)
API_SPEC: <name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
ARCHITECTURE:
Type: REST (v1) | HTTP (v2)
Endpoint: EDGE | REGIONAL | PRIVATE
Resources:
- /users [GET, POST]
- /users/{userId} [GET, PUT, DELETE]
Integration: AWS_PROXY (Lambda proxy) | AWS (direct) | HTTP_PROXY | VPC_LINK
Authorization: AWS_IAM | COGNITO_USER_POOLS | CUSTOM (Lambda) | NONE
Usage plan: name, rate=100, burst=200, quota=1M/month
WAF: <associated ARN> | none
Custom domain: api.example.com (ACM cert ARN, base path v1)
Logging: CloudWatch JSON access logs to <log-group>
Canary: enabled at 10% | disabled
CHECKLIST:
[x] API type selected based on feature requirements
[x] Endpoint type matches reachability requirements
[x] Resources and methods defined
[x] Integration type configured (AWS_PROXY / AWS / HTTP_PROXY / VPC_LINK)
[x] Authorization type set per method (NOT NONE for sensitive)
[x] Usage plan with API keys for per-consumer throttling
[x] Stage throttling defaults set (rate + burst)
[x] WAFv2 Web ACL associated with stage
[x] VPC Link targets NLB (for private integrations)
[x] Canary deployment enabled for safe releases
[x] Access logging to CloudWatch (JSON format with $context)
[x] Custom domain via ACM + base path mapping
[x] create-deployment emitted as final step
FINDINGS:
- [INFO] Estimated cost: $3.50/M requests + $0.09/GB data transfer
- [WARN] Account-level default throttle (10K rps) is shared across all APIs
DEPLOY_COMMANDS:
<ordered list of aws apigateway / apigatewayv2 commands>
Worked example — Lambda proxy REST API with Cognito + usage plans + WAF
API_SPEC: prod-user-service-api
VERDICT: READY_TO_DEPLOY
ARCHITECTURE:
Type: REST (v1)
Endpoint: REGIONAL (us-east-1)
Resources:
- /users [GET (list), POST (create)]
- /users/{userId} [GET, PUT, DELETE]
Integration: AWS_PROXY (Lambda: user-service-handler)
Authorization: COGNITO_USER_POOLS (user pool: prod-users-pool)
Usage plan: prod-consumer-plan, rate=100, burst=200, quota=1M/month
WAF: arn:aws:wafv2:us-east-1:111111111111:regional/webacl/prod-api-waf/abc
Custom domain: api.example.com (ACM cert, base path v1)
Logging: CloudWatch JSON access logs to /aws/apigateway/prod-user-service
Canary: enabled at 10% traffic
CHECKLIST:
[x] Type: REST (v1) — usage plans and mapping templates required
[x] Endpoint: REGIONAL — consumers in us-east-1
[x] Resources: /users, /users/{userId} with standard CRUD verbs
[x] Integration: AWS_PROXY Lambda — no mapping template needed
[x] Authorization: COGNITO_USER_POOLS — authorizer configured
[x] Usage plan: prod-consumer-plan linked to prod stage with API key
[x] Stage throttling: default 1000 rps / 500 burst, per-method overrides
[x] WAF: REGIONAL Web ACL with CommonRuleSet + rate-based rule
[x] VPC Link: N/A (Lambda integration)
[x] Canary: 10% traffic shifting enabled
[x] Access logging: JSON format with $context.requestId, status, latency
[x] Custom domain: api.example.com + base path v1 mapping
[x] create-deployment: emitted as final step
FINDINGS:
- [INFO] Estimated cost: $3.50/M requests + Lambda cost + $5/WAF/month
- [INFO] JWT validation offloaded to Cognito authorizer — no Lambda needed
- [WARN] Account-level default throttle shared across all APIs in us-east-1
DEPLOY_COMMANDS:
1. aws apigateway create-rest-api --name prod-user-service --endpoint-configuration types=REGIONAL
2. aws apigateway create-resource (root /users, /{userId})
3. aws apigateway put-method (GET, POST on /users; GET, PUT, DELETE on /{userId})
4. aws apigateway create-authorizer --type COGNITO_USER_POOLS --provider-arns <pool-arn>
5. aws apigateway put-integration --type AWS_PROXY --uri <lambda-arn>
6. aws lambda add-permission --principal apigateway.amazonaws.com --action lambda:InvokeFunction
7. aws apigateway create-usage-plan --throttle burstLimit=200,rateLimit=100
8. aws apigateway create-api-key --enabled
9. aws apigateway create-usage-plan-key --usage-plan-id <plan> --key-id <key>
10. aws wafv2 create-web-acl --scope REGIONAL
11. aws apigateway create-deployment --rest-api-id <id> --stage-name prod
12. aws apigatewayv2 associate-web-acl (associate WAF with stage ARN)
13. aws apigateway update-stage (canary 10% + access logging JSON)
14. aws apigateway create-domain-name + create-base-path-mapping (api.example.com/v1)
Verification commands (run after deployment)
Verification commands (get-stage, get-methods authorization check, usage-plan keys, WAF association, access logging, curl invocation, base-path mappings): references/diagnostic-commands.md.
Edge-case handling
Edge-case handling (undeployed stage, cross-region Lambda, rotating attackers vs WAF, Cognito authorizer caching TTL, EDGE source IP, HTTP API without authorizer): references/advanced-patterns.md.
Anti-Patterns — NEVER
NEVER treat apiKeyRequired: true as authentication. API keys are
usage-plan identifiers, not auth credentials. They are in cleartext
and extractable from client code. Use AWS_IAM, COGNITO_USER_POOLS, or
a Lambda authorizer.
NEVER modify methods/resources without create-deployment. The
deployment is the snapshot that goes live. Operators who change auth
type without deploying leave the OLD (often insecure) config serving.
Always emit create-deployment as the final command.
NEVER put an ALB directly behind a VPC Link. Only NLB is supported as
a VPC Link target. Front the ALB with an NLB, or use HTTP integration
with the ALB DNS (which exposes the ALB to internet egress).
NEVER set authorizationType: NONE on ANY method for sensitive data.
ANY covers GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS — including
destructive verbs. Use an authorizer on the ANY method.
NEVER rely on the account-level default throttle (10K rps). It is
shared across all APIs in the region. One abused API can 429 every
other API. Always create a usage plan with explicit per-consumer
throttles.
NEVER create an EDGE API with an ACM cert outside us-east-1. EDGE APIs
route through CloudFront, which reads ACM only from us-east-1. This is
an AWS hard constraint.
NEVER assume a usage plan without API keys provides rate limiting.
A plan with zero linked keys cannot enforce any throttle or quota.
NEVER skip access logging for a production API. JSON-format CloudWatch
access logs are the primary forensic signal for breach investigation,
latency diagnosis, and compliance audit.
NEVER use HTTP API when you need usage plans, API keys, mapping
templates, resource policies, or EDGE endpoints. HTTP API lacks these
features. Use REST API for these use cases.
NEVER assume aws:SourceIp works on EDGE APIs. The source IP is a
CloudFront edge IP. Use WAF or Lambda authorizer reading
x-forwarded-for for client-IP restrictions.
NEVER forget lambda:AddPermission for API Gateway to invoke the
Lambda function. Without it, the integration returns 500 with
"Invalid permissions on Lambda function."
NEVER use a Cognito authorizer without verifying the user pool ID and
app client are correct. A misconfigured authorizer may silently fall
through to unauthenticated access during deployment windows.
NEVER skip canary for high-traffic API changes. Direct-to-prod
deployments risk a bad config affecting 100% of traffic. Use a 5-10%
canary for at least 30 minutes before promotion.
Pre-flight safety checks (run before any deployment CLI)
MANDATORY CONFIRMATION GATE. Before create-deployment (which
makes config live), the deployer MUST emit:
CONFIRM: About to deploy API <name> stage <stage>. This makes the current configuration live to all consumers. Proceed? (yes/no)
Authorization model verification. Before deployment, list all
methods and verify NONE auth appears ONLY on intentionally public
endpoints. A misconfigured authorizer on a sensitive method is the
most common API Gateway incident.
Usage plan + API key verification. If the spec requires per-consumer
rate limiting, verify the usage plan exists AND has at least one API
key linked. A plan without keys is dormant.
WAF scope verification. For REST APIs, WAF must be REGIONAL scope
in the API's region. For HTTP APIs, same. EDGE APIs use CloudFront
scope in us-east-1 (via the API Gateway CloudFront distribution).
Custom domain ACM cert verification. The cert must cover the
domain and be in the correct region (REGIONAL: API region; EDGE:
us-east-1).
Cost estimate. Emit before deployment:
- REST API: $3.50/M requests + data transfer
- HTTP API: $1.00/M requests + data transfer
- WAF: $5/ACL/month + $0.60/M requests
- Cognito: $0.0055/MAU (free tier: 50K MAU)
- Lambda: $0.20/M invocations + GB-second
Deployment is irreversible without versioning. API Gateway does
not keep deployment history beyond the stages that reference them. Use
canary for rollback safety. Document the prior deployment ID before
each create-deployment.
Remediation guidance
Remediation guidance — PREREQUISITES_MISSING fixes (ACM cert region, VPC Link to ALB, cross-region Lambda) under the ordering principle authorization first, then deployment snapshot, then throttling, then optimization: references/error-handling.md.
References (load on demand)
- REST vs HTTP API guide - full REST/HTTP comparison, decision tree, authorization models (Steps 1, 5)
- Usage plans, VPC Link, and canary guide - usage plans and API keys, throttle semantics, VPC Link, canary deployments (Steps 6, 7, 9, 11)
- Diagnostic commands - live-account pre-flight checks, post-deployment verification commands
- Error handling - PREREQUISITES_MISSING remediations (ACM cert region, ALB VPC Link, cross-region Lambda)
- Advanced patterns - mindset, Step-0 expert knowledge, edge-case handling, recent AWS features
Domain
AWS CloudOps / API Gateway REST & HTTP API Provisioning.
Recent AWS features (2024-2026)
Recent AWS features 2024-2026 (HTTP API mTLS, VPC Lattice, OpenAPI 3.1, v2 OpenAPI importer, weighted canary logging, WebSocket GA): references/advanced-patterns.md.
AWS documentation
1---2name: apigateway-rest-deployer3description: Provisions production-grade API Gateway REST APIs with correct resource/method models, AWS_PROXY Lambda integrations, IAM/Cognito/Lambda authorizers, stage-level throttling (rate + burst), usage plans with API keys for per-consumer rate limiting, WAFv2 Web ACL association, VPC Link for NLB-backed private integrations, Velocity mapping templates, canary deployments with percentage-based traffic shifting, CloudWatch access logging in JSON, custom domain names via ACM with base path mapping, and REST vs HTTP API (v2) trade-offs. Emits a deployment plan with a READY_TO_DEPLOY checklist. Use when provisioning a new REST API, configuring Lambda proxy with authorizers, setting up usage plans for per-consumer quotas, deploying private integrations via VPC Link, or choosing between REST and HTTP API.4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline architecture planning. Live deployment uses aws apigateway create-rest-api, create-resource, put-method, put-integration, create-authorizer, create-usage-plan, create-api-key, create-vpc-link, create-deployment, create-stage, update-stage, aws apigatewayv2 create-api / create-domain-name, and aws wafv2 associate-web-acl (AWS CLI v2, SSO or key-based credentials).6metadata:7 source: https://skillmd.com/skills/jhkchan/apigateway-rest-deployer8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '1'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: AppIntegration15 task_type: deploy16 skill_class: capability17 lifecycle_status: experimental18 verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING19 when_to_use: Provisioning a new API Gateway REST API for production, configuring Lambda proxy (AWS_PROXY) integrations with IAM/Cognito/Lambda authorizers, setting up usage plans with API keys for per-consumer rate limiting and quotas, deploying private integrations via VPC Link to an NLB, configuring canary deployments with traffic shifting, enabling access logging to CloudWatch, mapping a custom domain name via ACM, or choosing between REST API (v1) and HTTP API (v2).20 activation_triggers: create a REST API, provision API Gateway, Lambda proxy integration, API Gateway Cognito authorizer, API Gateway usage plan, API Gateway rate limiting, API Gateway VPC Link, canary deployment API Gateway, API Gateway custom domain, REST API vs HTTP API, API Gateway WAF, API Gateway access logging21 invocation_schema: 'Input shape (one of): (a) a deployment specification including API type (REST vs HTTP), endpoint type (EDGE/REGIONAL/PRIVATE), resource and method layout, integration type (AWS_PROXY/AWS/HTTP/MOCK), authorization model, throttling/usage plan requirements, WAF requirements, VPC Link requirements, custom domain requirements, and logging requirements; (b) a partial spec for interactive refinement; (c) an existing REST API ID for architecture review against the well-architected checklist. Output shape: { API_SPEC, VERDICT, ARCHITECTURE, CHECKLIST[], FINDINGS[], DEPLOY_COMMANDS } where VERDICT ∈ { READY_TO_DEPLOY, PREREQUISITES_MISSING, ERROR }.'22 version: 0.1.023 author: Jacky Chan — AWS Community Builder24 keywords: API Gateway, REST API, HTTP API, API Gateway v2, resource method, AWS_PROXY, Lambda proxy, AWS integration, HTTP integration, MOCK integration, IAM authorization, COGNITO_USER_POOLS, Lambda authorizer, request authorizer, token authorizer, usage plan, API key, throttle, rate limit, burst limit, WAFv2, Web ACL, mapping template, Velocity template, VPC Link, NLB integration, private integration, stage variables, deployment, canary deployment, access logging, custom domain, base path mapping, REST vs HTTP API25 tags: apigateway, app-integration, deploy, rest-api, lambda-proxy, authorizer, usage-plan, throttling, vpc-link, canary, access-logging, custom-domain, waf26---2728# API Gateway REST Deployer29Mindset — layered security and contract model (snapshot deployments, API keys are not authentication, REST vs HTTP are different products): [references/advanced-patterns.md](references/advanced-patterns.md).3031## Quick reference — deployment checklist3233| Dimension | Requirement | Step |34|---|---|---|35| API type | REST (v1) or HTTP (v2) based on feature requirements | Step 1 |36| Endpoint type | EDGE / REGIONAL / PRIVATE (REST); REGIONAL (HTTP) | Step 2 |37| Resource/method | Path segments as resources, verbs as methods per resource | Step 3 |38| Integration | AWS_PROXY (Lambda proxy), AWS (direct), HTTP, HTTP_PROXY, MOCK | Step 4 |39| Authorization | AWS_IAM, COGNITO_USER_POOLS, CUSTOM (Lambda), NONE (rare) | Step 5 |40| Usage plan + API keys | Per-consumer throttling (rate + burst) + quotas | Step 6 |41| Stage throttling | Account/stage-level rate + burst defaults | Step 7 |42| WAFv2 Web ACL | Associated with stage (REGIONAL scope for REST API) | Step 8 |43| VPC Link | For NLB-backed private integrations | Step 9 |44| Mapping templates | Velocity templates for request/response transform | Step 10 |45| Canary deployment | Percentage-based traffic shifting for safe releases | Step 11 |46| Access logging | JSON format with context variables to CloudWatch | Step 12 |47| Custom domain | ACM cert + base path mapping | Step 13 |48| Stage variables | Per-stage config (function ARN, endpoint URL) | Step 14 |4950## Pre-flight: deployment specification gate (run before architecture output)5152Before producing the deployment plan, validate the input specification.53Several requirements **block deployment** — proceeding with an invalid54spec produces a non-functional or insecure API.5556Live-account pre-flight checks (IAM permissions, Lambda function and invoke permission, NLB multi-AZ, Cognito user pool, ACM cert region): [references/diagnostic-commands.md](references/diagnostic-commands.md).5758| Attribute | Value | Effect on plan |59|---|---|---|60| `protocolType` | `REST` (v1) | Full feature set. Use for usage plans, mapping templates, resource policies, EDGE. |61| `protocolType` | `HTTP` (v2) | Simpler, cheaper. JWT or IAM auth only. No mapping templates. REGIONAL only. |62| `endpointType` | `EDGE` | Routes through CloudFront. Source IP visible to backend is CloudFront. ACM cert must be us-east-1. |63| `endpointType` | `REGIONAL` | Public regional endpoint. ACM cert in API region. Default for HTTP API. |64| `endpointType` | `PRIVATE` | Only reachable via interface VPC endpoint. Use VPC endpoint policy for access. |65| Authorization | `AWS_IAM` | Sigv4-signed requests. Good for service-to-service. |66| Authorization | `COGNITO_USER_POOLS` | JWT from Cognito. Good for user-facing apps. |67| Authorization | `CUSTOM` (Lambda) | Flexible — request or token authorizer. |68| Authorization | `NONE` | Public. Acceptable ONLY for health checks or public endpoints. |6970**If the deployment spec is incomplete** (missing API type, integration,71or authorization model), output:7273```text74API_SPEC: <name-or-unknown>75VERDICT: PREREQUISITES_MISSING76REASON: Deployment specification is missing required fields (<list>).77Cannot produce a deployment plan without <field> — the resulting API78would be non-functional or insecure.79REQUIRED:80 - api_type (REST or HTTP)81 - endpoint_type (EDGE / REGIONAL / PRIVATE)82 - integration_type (AWS_PROXY / AWS / HTTP / HTTP_PROXY / MOCK)83 - authorization (AWS_IAM / COGNITO_USER_POOLS / CUSTOM / NONE)84 - resource_method_layout (paths and verbs)85```8687## Process — Architecture planning (apply in order, produce deployment plan)8889### Step 0: Expert knowledge — non-obvious API Gateway behaviors that change the plan90Step 0 expert knowledge — non-obvious behaviors that change the plan (changes not live until create-deployment, API keys are not authentication, ANY/{proxy+} dangers, dormant usage plans, shared account throttle, EDGE client IP, WAF per-IP rules, VTL mapping templates, NLB-only VPC Link, stage variables, canary traffic shifting, JSON access logging, custom domains): [references/advanced-patterns.md](references/advanced-patterns.md).9192### Step 1: API type selection — REST (v1) vs HTTP (v2)93Step 1 decision detail — REST (v1) vs HTTP (v2) comparison matrix, decision rule, and migration notes: [references/rest-vs-http-api-guide.md](references/rest-vs-http-api-guide.md).9495### Step 2: Endpoint type9697| Type | Reachability | Use case |98|---|---|---|99| `EDGE` | Global via CloudFront | API consumed from multiple regions, low latency worldwide. ACM cert must be in us-east-1. |100| `REGIONAL` | Public regional endpoint | Default. API consumed from same region. ACM cert in API region. |101| `PRIVATE` | Only via interface VPC endpoint | Internal APIs. Access controlled by VPC endpoint policy. |102103HTTP API supports only `REGIONAL`.104105### Step 3: Resource and method model106107**REST API resources are path segments.** Each resource has child108resources and methods. The root resource (`/`) has methods like ANY.109110```text111/ (root)112├── /users113│ ├── GET (list users)114│ ├── POST (create user)115│ └── /{userId}116│ ├── GET (get user)117│ ├── PUT (update user)118│ └── DELETE (delete user)119└── /orders120 └── ANY (proxy to Lambda for all verbs)121```122123**Method configuration:**124```bash125aws apigateway put-method --rest-api-id <id> --resource-id <rid> \126 --http-method GET \127 --authorization-type COGNITO_USER_POOLS \128 --authorizer-id <authorizer-id> \129 --api-key-required false130```131132### Step 4: Integration type133134| Type | When to use |135|---|---|136| `AWS_PROXY` (Lambda proxy) | Default for Lambda. Passes full request as JSON event to Lambda. Lambda returns status + headers + body. No mapping template needed. |137| `AWS` | Direct AWS service call (e.g., DynamoDB, SNS, SQS). Requires mapping templates for request/response format. |138| `HTTP` | External HTTP endpoint. Requires mapping templates if transform needed. |139| `HTTP_PROXY` | External HTTP endpoint, no transform. Pass-through. |140| `MOCK` | For testing. Returns a fixed response without calling a backend. |141142**Lambda proxy (AWS_PROXY):**143```bash144aws apigateway put-integration --rest-api-id <id> --resource-id <rid> \145 --http-method POST \146 --type AWS_PROXY \147 --integration-http-method POST \148 --uri arn:aws:apigateway:<region>:lambda:path/2015-03-31/functions/arn:aws:lambda:<region>:<account>:function:<name>/invocations149```150151**Lambda permission for API Gateway:**152```bash153aws lambda add-permission --function-name <name> \154 --statement-id apigw-invoke --action lambda:InvokeFunction \155 --principal apigateway.amazonaws.com \156 --source-arn arn:aws:execute-api:<region>:<account>:<api-id>/*/POST/users157```158159### Step 5: Authorization160Step 5 detail — authorization model matrix plus Cognito and Lambda request authorizer creation commands: [references/rest-vs-http-api-guide.md](references/rest-vs-http-api-guide.md).161162### Step 6: Usage plans and API keys163Step 6 CLI sequences (create-usage-plan with throttle/quota, create-api-key, create-usage-plan-key, per-method apiKeyRequired): [references/usage-plans-vpclink-canary-guide.md](references/usage-plans-vpclink-canary-guide.md).164165### Step 7: Stage throttling166Step 7 CLI sequence (update-stage throttle patch-operations; method-level overrides win; burst must be <= 25% of rate): [references/usage-plans-vpclink-canary-guide.md](references/usage-plans-vpclink-canary-guide.md).167168### Step 8: WAFv2 Web ACL association169170```bash171aws wafv2 create-web-acl --name prod-api-waf --scope REGIONAL \172 --region <api-region> \173 --default-action Allow={} \174 --visibility-config SampledRequestsEnabled=true,CloudWatchMetricsEnabled=true,MetricName=prod-api-waf \175 --rules file://waf-rules.json176177aws apigatewayv2 associate-web-acl \178 --web-acl-arn arn:aws:wafv2:<region>:<account>:regional/webacl/prod-api-waf/<id> \179 --resource-arn arn:aws:apigateway:<region>::/restapis/<api-id>/stages/prod180```181182For HTTP API (v2), use the same association — the resource ARN is183`/apis/<api-id>/stages/<stage>`.184185**Recommended rule groups:** `AWSManagedRulesCommonRuleSet`,186`AWSManagedRulesSQLiRuleSet`, `AWSManagedRulesKnownBadInputsRuleSet`,187and a rate-based rule (e.g., 2000 requests per 5 minutes per IP).188189### Step 9: VPC Link for private integrations190Step 9 CLI sequence (create-vpc-link targeting an NLB, wait for AVAILABLE, connectionType VPC_LINK; NEVER target an ALB directly): [references/usage-plans-vpclink-canary-guide.md](references/usage-plans-vpclink-canary-guide.md).191192### Step 10: Mapping templates (REST API only)193194Velocity templates transform request/response payloads. HTTP API does195NOT support mapping templates.196197**Request mapping (client → integration):**198```velocity199#set($inputRoot = $input.path('$'))200{201 "userId": "$inputRoot.userId",202 "timestamp": "$context.requestTimeEpoch",203 "sourceIp": "$context.identity.sourceIp"204}205```206207**Response mapping (integration → client):**208```velocity209#set($inputRoot = $input.path('$'))210{211 "status": 200,212 "data": $inputRoot.items213}214```215216**Common `$context` variables:**217`$context.requestId`, `$context.stage`, `$context.httpMethod`,218`$context.resourcePath`, `$context.sourceIp`, `$context.identity.userAgent`,219`$context.responseLatency`, `$context.status`, `$context.error_message`.220221### Step 11: Canary deployments222Step 11 CLI sequence (canary percentTraffic / deploymentId / useStageCache; promote at 100%): [references/usage-plans-vpclink-canary-guide.md](references/usage-plans-vpclink-canary-guide.md).223224### Step 12: Access logging225226```bash227aws apigateway update-stage --rest-api-id <id> --stage-name prod \228 --patch-operations \229 op=replace,path=/accessLogSettings/destinationArn,value=arn:aws:logs:<region>:<account>:log-group:prod-api-access \230 op=replace,path=/accessLogSettings/format,value='{"requestId":"$context.requestId","ip":"$context.identity.sourceIp","caller":"$context.identity.caller","user":"$context.identity.user","requestTime":"$context.requestTime","httpMethod":"$context.httpMethod","resourcePath":"$context.resourcePath","status":"$context.status","protocol":"$context.protocol","responseLength":"$context.responseLength","latency":$context.responseLatency,"errorMessage":"$context.error.message"}'231```232233JSON format enables CloudWatch Logs Insights queries:234```235fields @timestamp, status, latency, ip236| filter status >= 400237| stats count() by status238```239240### Step 13: Custom domain names241242**REST API:**243```bash244aws apigateway create-domain-name \245 --domain-name api.example.com \246 --regional-certificate-arn arn:aws:acm:<region>:<account>:certificate/<id> \247 --endpoint-configuration types=REGIONAL248249aws apigateway create-base-path-mapping \250 --domain-name api.example.com \251 --rest-api-id <api-id> \252 --stage prod \253 --base-path v1254```255256**HTTP API (v2):**257```bash258aws apigatewayv2 create-domain-name \259 --domain-name api.example.com \260 --domain-name-configurations certificateArn=arn:aws:acm:<region>:<account>:certificate/<id>,endpointType=REGIONAL261262aws apigatewayv2 create-api-mapping \263 --domain-name api.example.com \264 --api-id <api-id> \265 --stage prod \266 --api-mapping-key v1267```268269**ACM cert:** REGIONAL API = cert in API region. EDGE API = cert in270us-east-1. HTTP API = cert in API region.271272### Step 14: Stage variables273274Stage variables enable per-stage config. Reference in Lambda integration275URI as `arn:aws:lambda:<region>:<account>:function:${stageVariables.functionName}`.276Set variables via:277```bash278aws apigateway update-stage --rest-api-id <id> --stage-name prod \279 --patch-operations op=replace,path=/variables/functionName,value=prod-handler280```281282## Output format (per API deployment plan)283284```text285API_SPEC: <name>286VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING287ARCHITECTURE:288 Type: REST (v1) | HTTP (v2)289 Endpoint: EDGE | REGIONAL | PRIVATE290 Resources:291 - /users [GET, POST]292 - /users/{userId} [GET, PUT, DELETE]293 Integration: AWS_PROXY (Lambda proxy) | AWS (direct) | HTTP_PROXY | VPC_LINK294 Authorization: AWS_IAM | COGNITO_USER_POOLS | CUSTOM (Lambda) | NONE295 Usage plan: name, rate=100, burst=200, quota=1M/month296 WAF: <associated ARN> | none297 Custom domain: api.example.com (ACM cert ARN, base path v1)298 Logging: CloudWatch JSON access logs to <log-group>299 Canary: enabled at 10% | disabled300CHECKLIST:301 [x] API type selected based on feature requirements302 [x] Endpoint type matches reachability requirements303 [x] Resources and methods defined304 [x] Integration type configured (AWS_PROXY / AWS / HTTP_PROXY / VPC_LINK)305 [x] Authorization type set per method (NOT NONE for sensitive)306 [x] Usage plan with API keys for per-consumer throttling307 [x] Stage throttling defaults set (rate + burst)308 [x] WAFv2 Web ACL associated with stage309 [x] VPC Link targets NLB (for private integrations)310 [x] Canary deployment enabled for safe releases311 [x] Access logging to CloudWatch (JSON format with $context)312 [x] Custom domain via ACM + base path mapping313 [x] create-deployment emitted as final step314FINDINGS:315 - [INFO] Estimated cost: $3.50/M requests + $0.09/GB data transfer316 - [WARN] Account-level default throttle (10K rps) is shared across all APIs317DEPLOY_COMMANDS:318 <ordered list of aws apigateway / apigatewayv2 commands>319```320321### Worked example — Lambda proxy REST API with Cognito + usage plans + WAF322323```text324API_SPEC: prod-user-service-api325VERDICT: READY_TO_DEPLOY326ARCHITECTURE:327 Type: REST (v1)328 Endpoint: REGIONAL (us-east-1)329 Resources:330 - /users [GET (list), POST (create)]331 - /users/{userId} [GET, PUT, DELETE]332 Integration: AWS_PROXY (Lambda: user-service-handler)333 Authorization: COGNITO_USER_POOLS (user pool: prod-users-pool)334 Usage plan: prod-consumer-plan, rate=100, burst=200, quota=1M/month335 WAF: arn:aws:wafv2:us-east-1:111111111111:regional/webacl/prod-api-waf/abc336 Custom domain: api.example.com (ACM cert, base path v1)337 Logging: CloudWatch JSON access logs to /aws/apigateway/prod-user-service338 Canary: enabled at 10% traffic339CHECKLIST:340 [x] Type: REST (v1) — usage plans and mapping templates required341 [x] Endpoint: REGIONAL — consumers in us-east-1342 [x] Resources: /users, /users/{userId} with standard CRUD verbs343 [x] Integration: AWS_PROXY Lambda — no mapping template needed344 [x] Authorization: COGNITO_USER_POOLS — authorizer configured345 [x] Usage plan: prod-consumer-plan linked to prod stage with API key346 [x] Stage throttling: default 1000 rps / 500 burst, per-method overrides347 [x] WAF: REGIONAL Web ACL with CommonRuleSet + rate-based rule348 [x] VPC Link: N/A (Lambda integration)349 [x] Canary: 10% traffic shifting enabled350 [x] Access logging: JSON format with $context.requestId, status, latency351 [x] Custom domain: api.example.com + base path v1 mapping352 [x] create-deployment: emitted as final step353FINDINGS:354 - [INFO] Estimated cost: $3.50/M requests + Lambda cost + $5/WAF/month355 - [INFO] JWT validation offloaded to Cognito authorizer — no Lambda needed356 - [WARN] Account-level default throttle shared across all APIs in us-east-1357DEPLOY_COMMANDS:358 1. aws apigateway create-rest-api --name prod-user-service --endpoint-configuration types=REGIONAL359 2. aws apigateway create-resource (root /users, /{userId})360 3. aws apigateway put-method (GET, POST on /users; GET, PUT, DELETE on /{userId})361 4. aws apigateway create-authorizer --type COGNITO_USER_POOLS --provider-arns <pool-arn>362 5. aws apigateway put-integration --type AWS_PROXY --uri <lambda-arn>363 6. aws lambda add-permission --principal apigateway.amazonaws.com --action lambda:InvokeFunction364 7. aws apigateway create-usage-plan --throttle burstLimit=200,rateLimit=100365 8. aws apigateway create-api-key --enabled366 9. aws apigateway create-usage-plan-key --usage-plan-id <plan> --key-id <key>367 10. aws wafv2 create-web-acl --scope REGIONAL368 11. aws apigateway create-deployment --rest-api-id <id> --stage-name prod369 12. aws apigatewayv2 associate-web-acl (associate WAF with stage ARN)370 13. aws apigateway update-stage (canary 10% + access logging JSON)371 14. aws apigateway create-domain-name + create-base-path-mapping (api.example.com/v1)372```373374## Verification commands (run after deployment)375Verification commands (get-stage, get-methods authorization check, usage-plan keys, WAF association, access logging, curl invocation, base-path mappings): [references/diagnostic-commands.md](references/diagnostic-commands.md).376377## Edge-case handling378Edge-case handling (undeployed stage, cross-region Lambda, rotating attackers vs WAF, Cognito authorizer caching TTL, EDGE source IP, HTTP API without authorizer): [references/advanced-patterns.md](references/advanced-patterns.md).379380## Anti-Patterns — NEVER381382- NEVER treat `apiKeyRequired: true` as authentication. API keys are383 usage-plan identifiers, not auth credentials. They are in cleartext384 and extractable from client code. Use AWS_IAM, COGNITO_USER_POOLS, or385 a Lambda authorizer.386387- NEVER modify methods/resources without `create-deployment`. The388 deployment is the snapshot that goes live. Operators who change auth389 type without deploying leave the OLD (often insecure) config serving.390 Always emit `create-deployment` as the final command.391392- NEVER put an ALB directly behind a VPC Link. Only NLB is supported as393 a VPC Link target. Front the ALB with an NLB, or use HTTP integration394 with the ALB DNS (which exposes the ALB to internet egress).395396- NEVER set `authorizationType: NONE` on ANY method for sensitive data.397 ANY covers GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS — including398 destructive verbs. Use an authorizer on the ANY method.399400- NEVER rely on the account-level default throttle (10K rps). It is401 shared across all APIs in the region. One abused API can 429 every402 other API. Always create a usage plan with explicit per-consumer403 throttles.404405- NEVER create an EDGE API with an ACM cert outside us-east-1. EDGE APIs406 route through CloudFront, which reads ACM only from us-east-1. This is407 an AWS hard constraint.408409- NEVER assume a usage plan without API keys provides rate limiting.410 A plan with zero linked keys cannot enforce any throttle or quota.411412- NEVER skip access logging for a production API. JSON-format CloudWatch413 access logs are the primary forensic signal for breach investigation,414 latency diagnosis, and compliance audit.415416- NEVER use HTTP API when you need usage plans, API keys, mapping417 templates, resource policies, or EDGE endpoints. HTTP API lacks these418 features. Use REST API for these use cases.419420- NEVER assume `aws:SourceIp` works on EDGE APIs. The source IP is a421 CloudFront edge IP. Use WAF or Lambda authorizer reading422 `x-forwarded-for` for client-IP restrictions.423424- NEVER forget `lambda:AddPermission` for API Gateway to invoke the425 Lambda function. Without it, the integration returns 500 with426 "Invalid permissions on Lambda function."427428- NEVER use a Cognito authorizer without verifying the user pool ID and429 app client are correct. A misconfigured authorizer may silently fall430 through to unauthenticated access during deployment windows.431432- NEVER skip canary for high-traffic API changes. Direct-to-prod433 deployments risk a bad config affecting 100% of traffic. Use a 5-10%434 canary for at least 30 minutes before promotion.435436## Pre-flight safety checks (run before any deployment CLI)437438- **MANDATORY CONFIRMATION GATE.** Before `create-deployment` (which439 makes config live), the deployer MUST emit:440 `CONFIRM: About to deploy API <name> stage <stage>. This makes the441 current configuration live to all consumers. Proceed? (yes/no)`442443- **Authorization model verification.** Before deployment, list all444 methods and verify NONE auth appears ONLY on intentionally public445 endpoints. A misconfigured authorizer on a sensitive method is the446 most common API Gateway incident.447448- **Usage plan + API key verification.** If the spec requires per-consumer449 rate limiting, verify the usage plan exists AND has at least one API450 key linked. A plan without keys is dormant.451452- **WAF scope verification.** For REST APIs, WAF must be REGIONAL scope453 in the API's region. For HTTP APIs, same. EDGE APIs use CloudFront454 scope in us-east-1 (via the API Gateway CloudFront distribution).455456- **Custom domain ACM cert verification.** The cert must cover the457 domain and be in the correct region (REGIONAL: API region; EDGE:458 us-east-1).459460- **Cost estimate.** Emit before deployment:461 - REST API: $3.50/M requests + data transfer462 - HTTP API: $1.00/M requests + data transfer463 - WAF: $5/ACL/month + $0.60/M requests464 - Cognito: $0.0055/MAU (free tier: 50K MAU)465 - Lambda: $0.20/M invocations + GB-second466467- **Deployment is irreversible without versioning.** API Gateway does468 not keep deployment history beyond the stages that reference them. Use469 canary for rollback safety. Document the prior deployment ID before470 each `create-deployment`.471472## Remediation guidance473Remediation guidance — PREREQUISITES_MISSING fixes (ACM cert region, VPC Link to ALB, cross-region Lambda) under the ordering principle authorization first, then deployment snapshot, then throttling, then optimization: [references/error-handling.md](references/error-handling.md).474475## References (load on demand)476477- [REST vs HTTP API guide](references/rest-vs-http-api-guide.md) - full REST/HTTP comparison, decision tree, authorization models (Steps 1, 5)478- [Usage plans, VPC Link, and canary guide](references/usage-plans-vpclink-canary-guide.md) - usage plans and API keys, throttle semantics, VPC Link, canary deployments (Steps 6, 7, 9, 11)479- [Diagnostic commands](references/diagnostic-commands.md) - live-account pre-flight checks, post-deployment verification commands480- [Error handling](references/error-handling.md) - PREREQUISITES_MISSING remediations (ACM cert region, ALB VPC Link, cross-region Lambda)481- [Advanced patterns](references/advanced-patterns.md) - mindset, Step-0 expert knowledge, edge-case handling, recent AWS features482483## Domain484485AWS CloudOps / API Gateway REST & HTTP API Provisioning.486487## Recent AWS features (2024-2026)488Recent AWS features 2024-2026 (HTTP API mTLS, VPC Lattice, OpenAPI 3.1, v2 OpenAPI importer, weighted canary logging, WebSocket GA): [references/advanced-patterns.md](references/advanced-patterns.md).489490## AWS documentation491492- **API Gateway Developer Guide** — https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html493- **API Gateway API Reference (v1)** — https://docs.aws.amazon.com/apigateway/latest/api/494- **API Gateway API Reference (v2)** — https://docs.aws.amazon.com/apigatewayv2/latest/api-reference/495- **API Gateway Security** — https://docs.aws.amazon.com/apigateway/latest/developerguide/security.html496- **API Gateway CLI Reference (v1)** — https://docs.aws.amazon.com/cli/latest/reference/apigateway/497- **API Gateway CLI Reference (v2)** — https://docs.aws.amazon.com/cli/latest/reference/apigatewayv2/498- **Choosing between REST and HTTP APIs** — https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-vs-rest.html499- **WAFv2 Developer Guide** — https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html500- **Blog: HTTP API mTLS** — https://aws.amazon.com/blogs/compute/introducing-mutual-tls-authentication-for-amazon-api-gateway-http-apis/501- **Blog: VPC Lattice + API Gateway** — https://aws.amazon.com/blogs/compute/building-secure-internal-apis-with-amazon-api-gateway-and-amazon-vpc-lattice/