AWS guides
WSO2 API Platform works alongside the AWS services you already use. Govern AI traffic to Amazon Bedrock, bring APIs running on Amazon API Gateway under one control plane, and run gateways on Amazon EKS with AWS identity and observability.
End-to-end guides and tutorials
Step-by-step guides for AWS. Guides are part of this documentation. Tutorials are published on the WSO2 API Platform Learn Hub and written for the product version they name.
-
Use Amazon Bedrock and Bedrock Guardrails with WSO2 AI Gateway
Register Bedrock in AI Workspace, create an App LLM Proxy, attach a native Bedrock Guardrail, and verify request and response validation.
Learn Hub tutorial · Amazon Bedrock · Self-hosted
-
Discover and govern APIs from Amazon API Gateway
Discover REST APIs on Amazon API Gateway, check compliance, and publish them to the Developer Portal.
Guide · Amazon API Gateway · Cloud, Hybrid
You run the gateways, on their own or with your own control plane.
AI Gateway with Amazon Bedrock
Route, secure, and govern traffic to foundation models on Amazon Bedrock through WSO2 AI Gateway, without changing your client applications.
Amazon Bedrock as an LLM provider
Connect Amazon Bedrock and manage its models and credentials centrally.
- Create an AI API for Amazon Bedrock Cloud console
- Configure an LLM provider AI Workspace
- Use Amazon Bedrock and Bedrock Guardrails with WSO2 AI Gateway Learn Hub tutorial
- Amazon Bedrock provider AI Gateway
- Configure an LLM provider AI Workspace
AWS authentication
Sign requests with AWS Signature Version 4 (SigV4) using IAM credentials, a workload role, or cross-account role assumption.
- AWS Authentication policy Policy Hub
- Choose an authentication method AI Gateway
- AWS Authentication policy Policy Hub
Amazon Bedrock Guardrails
Enforce the content filters, denied topics, and sensitive-information policies that you define in Amazon Bedrock on traffic through the gateway.
- AWS Bedrock Guardrail Cloud console
- AWS Bedrock Guardrail policy Policy Hub
- AWS Bedrock Guardrail policy Policy Hub
- Guardrails catalogue AI Gateway
Token limits, semantic caching, and the other AI API policies work the same way for every provider. See AI APIs.
Routing, token limits, cost control, and the other AI Workspace policies work the same way for every provider. See the AI Workspace overview.
Routing, token limits, cost control, and the gateway's other policies work the same way for every provider. See the AI Gateway documentation.
- Credentials: give the gateway its own IAM identity with access only to the models it needs, and never give Bedrock credentials to a client application. On a gateway you run, prefer temporary credentials or an AWS workload role over long-term keys.
- Regions and data residency: the Region in the endpoint URL, the signing Region, the model or inference profile, and the guardrail must all be compatible. Confirm every possible destination Region before you use cross-Region inference for regulated workloads.
Federate with Amazon API Gateway
Manage the APIs you run on Amazon API Gateway from the WSO2 control plane. WSO2 API Platform governs only the API metadata. Consumers continue to call Amazon API Gateway directly.
Discover APIs on Amazon API Gateway
Import APIs that already run on Amazon API Gateway and check their compliance.
- Discover and govern APIs from Amazon API Gateway End-to-end guide
- Discover APIs from Amazon API Gateway Cloud console
- Gateway federation overview Cloud console
Publish discovered APIs
Move a discovered API through its lifecycle and make it available in the Developer Portal.
- Manage the API lifecycle Cloud console
- Discover APIs in the Developer Portal Cloud console
The gateway connection uses the access key of an AWS Identity and Access Management (IAM) user. The guide attaches the AWS managed AmazonAPIGatewayAdministrator policy, which grants more than read access to your APIs. Create a dedicated IAM user for this connection only, store its secret access key in a secrets manager, rotate the key regularly, and deactivate it when you remove the gateway. Never use root account credentials.
Run gateways on Amazon EKS
Run the gateway on your own AWS infrastructure, give it an AWS identity, and send its telemetry to AWS observability services.
Deploy on Amazon EKS
The Kubernetes deployment docs aren't specific to AWS, but they apply to Amazon Elastic Kubernetes Service (Amazon EKS).
- Set up a self-hosted gateway Cloud console
- Set up an AI Gateway AI Workspace
- Kubernetes deployment modes AI Gateway
- Kubernetes Operator AI Gateway
- Production deployment AI Gateway
- Security hardening AI Gateway
- Performance benchmarks on EKS API Gateway
Workload identity
Give each gateway workload a dedicated IAM role. For EKS, prefer EKS Pod Identity, and use IAM roles for service accounts (IRSA) as a supported alternative.
- Default AWS credential chain AI Gateway
- IAM roles for service accounts AI Gateway
- AWS STS role assumption AI Gateway
Amazon CloudWatch and AWS X-Ray
Export gateway logs, metrics, and traces through Fluent Bit, an OpenTelemetry Collector, or AWS Distro for OpenTelemetry (ADOT).
- Send AI Gateway logs to CloudWatch AI Gateway
- Send AI Gateway traces to X-Ray AI Gateway
- Send AI Gateway logs to CloudWatch AI Gateway
- Send AI Gateway traces to X-Ray AI Gateway
- Send API Gateway metrics to CloudWatch API Gateway
- Send API Gateway traces to X-Ray API Gateway
Architecture and responsibility model
WSO2 API Platform and AWS split the work like this:
| Scenario | WSO2 role | AWS role | Runtime traffic |
|---|---|---|---|
| Amazon Bedrock through AI Gateway | Proxies and governs AI requests | Hosts the selected model and optional Bedrock guardrail | Goes through WSO2 AI Gateway to Amazon Bedrock |
| Amazon API Gateway discovery | Control plane, governance, catalog, and compliance | Hosts and runs the API | Goes directly to Amazon API Gateway |
| Gateway deployed on AWS | Runs the gateway software and policies | Provides compute, workload identity, and observability backends | Depends on the deployed gateway topology |
Learn more
Related pages in the AWS documentation:
To browse every guide by goal, see the Guides overview.
Was this page helpful?