AWS API Gateway API Portal:如何盤點組織內的影子 API 及其費用
API Gateway API Portal: Finding Shadow APIs Across Your Org and What It Costs
AWS 在 Amazon API Gateway 推出 API Portal,可盤點單一帳戶或整個 AWS Organization 內由 API Gateway、Application Load Balancer 和 CloudFront 提供的 API,並識別 AI 端點。
Most teams I speak to can tell you how many APIs they meant to build. Fewer can tell you how many are actually answering requests. AWS has just shipped something aimed squarely at that gap: API Portal, in Amazon API Gateway.
Going by the launch post and the developer guide (I haven't turned it on myself yet), here's what it does, what it costs, and where I'd be careful.
What it actually does
API Portal builds an inventory of the APIs sitting behind API Gateway, Application Load Balancer and CloudFront, for one account or a whole AWS Organization. AWS says there's nothing to install, no logs to forward and no traffic to reroute. It reads AWS-side traffic logs and service configuration records.
Every discovered API starts life as a shadow API. You promote the ones you want to managed. Managed APIs that stop receiving traffic or lose their owner get flagged. It also identifies AI endpoints (MCP servers, A2A servers and LLM-backed APIs) from the protocols seen in their traffic, and checks posture: authentication, request validation, throttling, TLS version and WAF protection.
Discovery is read-only. Promoting an API to managed doesn't touch the underlying resource.
The details that matter
An "API" here is an HTTP method plus a path on a front door, like GET /v1/payments. One REST API will usually show up as several rows, and an API reachable through two front doors gets a row per front door. That matters for pricing, below.
Coverage is uneven by source:
-
API Gateway: REST APIs only. HTTP APIs and WebSocket APIs are not discovered. Explicit methods appear from AWS Config records even with no traffic, but
ANYand greedy paths like/{proxy+}only appear once real traffic is seen. - ALB: traffic only. A dead endpoint never appears.
- CloudFront: traffic only, and discovered in us-east-1 because it is global.
If half your estate is HTTP APIs, this won't show you half your estate. Check that first.
Timing: new APIs typically appear within a few hours, allow up to 24 hours after enabling. Deleted or no-traffic APIs stay in the inventory for about 30 days. It's available in 32 Regions.
What it costs
Pricing from the API Gateway pricing page, US East (N. Virginia) only. I couldn't find other Regions stated.
- Discovery: a $40.00 monthly minimum per Region, which includes up to 400 discovered APIs. $0.10 per additional discovered API.
- Documentation portal: $125.00, includes 400 APIs. $0.30 per additional API in a portal.
AWS's own worked examples: 300 discovered APIs and no portal is $40. 600 discovered with a 500-API portal is $165. An API is never billed under both discovery and documentation.
Because every method and path counts, a modest microservice estate can pass 400 faster than you'd think. Count rows, not APIs.
How it fits with the WAF launches
The same day, AWS launched two WAF managed rule groups, API Security and AI Security. The security blog frames them as the enforcement half: API Portal shows what exists and which endpoints WAF protects, and surfaces the security events WAF detects on each managed API. Discovery itself is an API Gateway feature. I covered the WAF side separately, so I won't repeat it here.
One thing worth knowing: the existing API Gateway Portals keep working and are managed from a Documentation Portals section, but there is no migration between the two at launch, and managed APIs don't carry over automatically.
What I'd do first
- Enable discovery in a single non-production account and wait the full 24 hours.
- Compare the row count to what you think you own. The gap is the point.
- Check how many of your APIs are HTTP APIs, since they won't appear.
- Estimate your row count against the 400 included before enabling it org-wide.
Not stated by AWS: the zombie and orphan thresholds, per-Region pricing outside US East, and the IAM permission detail I didn't read. If you've run discovery on a real org, I'd like to know how noisy the shadow list was.
Sources
- https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-api-gateway-announces-api-portal/
- https://docs.aws.amazon.com/apigateway/latest/developerguide/apiportal.html
- https://aws.amazon.com/api-gateway/pricing/
- https://aws.amazon.com/blogs/security/introducing-api-and-ai-security-on-aws-from-discovery-to-protection/
Drafted with AI assistance. I review and edit every post.
來源:DEV Community · dev.to