itsmostafa/aws-agent-skills/api-gateway
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
AWS API Gateway for REST and HTTP API management. Use when creating APIs, configuring integrations, setting up authorization, managing stages, implementing rate limiting, or troubleshooting API issues.
Install
npx vskill@latest install itsmostafa/aws-agent-skills/api-gatewaySKILL.md
AWS API Gateway
Amazon API Gateway is a fully managed service for creating, publishing, and securing APIs at any scale. Supports REST APIs, HTTP APIs, and WebSocket APIs.
Table of Contents
Core Concepts
API Types
| Type | Description | Use Case | |
|---|---|---|---|
| HTTP API | Low-latency, cost-effective | Simple APIs, Lambda proxy | |
| REST API | Full-featured, more control | Complex APIs, transformation | |
| WebSocket API | Bidirectional communication | Real-time apps, chat |
Key Components
- Resources: URL paths (/users, /orders/{id})
- Methods: HTTP verbs (GET, POST, PUT, DELETE)
- Integrations: Backend connections (Lambda, HTTP, AWS services)
- Stages: Deployment environments (dev, prod)
Integration Types
| Type | Description | |
|---|---|---|
| Lambda Proxy | Pass-through to Lambda (recommended) | |
| Lambda Custom | Transform request/response | |
| HTTP Proxy | Pass-through to HTTP endpoint | |
| AWS Service | Direct integration with AWS services | |
| Mock | Return static response |
Common Patterns
Create HTTP API with Lambda
AWS CLI:
SAM Template:
Create REST API with Lambda Proxy
Lambda Handler for API Gateway
Configure CORS
HTTP API:
REST API:
JWT Authorization (HTTP API)
CLI Reference
HTTP API (apigatewayv2)
| Command | Description | |
|---|---|---|
aws apigatewayv2 create-api | Create API | |
aws apigatewayv2 get-apis | List APIs | |
aws apigatewayv2 create-route | Create route | |
aws apigatewayv2 create-integration | Create integration | |
aws apigatewayv2 create-stage | Create stage | |
aws apigatewayv2 create-authorizer | Create authorizer |
REST API (apigateway)
| Command | Description | |
|---|---|---|
aws apigateway create-rest-api | Create API | |
aws apigateway get-rest-apis | List APIs | |
aws apigateway create-resource | Create resource | |
aws apigateway put-method | Create method | |
aws apigateway put-integration | Create integration | |
aws apigateway create-deployment | Deploy API |
Best Practices
Performance
- Use HTTP APIs for simple use cases (70% cheaper, lower latency)
- Enable caching for REST APIs
- Use regional endpoints unless global distribution needed
- Implement pagination for list endpoints
Security
- Use authorization on all endpoints
- Enable WAF for REST APIs
- Use API keys for rate limiting (not authentication)
- Enable access logging
- Use HTTPS only
Reliability
- Set up throttling to protect backends
- Configure timeout appropriately
- Use canary deployments for updates
- Monitor with CloudWatch
Troubleshooting
403 Forbidden
Causes:
- Missing authorization
- Invalid API key
- WAF blocking
- Resource policy denying
Debug:
502 Bad Gateway
Causes:
- Lambda error
- Integration timeout
- Invalid response format
Lambda response format:
504 Gateway Timeout
Causes:
- Backend timeout (Lambda max 29 seconds for REST API)
- Integration timeout too short
Solutions:
- Increase Lambda timeout
- Use async processing for long operations
- Increase integration timeout (max 29s for REST, 30s for HTTP)
CORS Errors
Debug:
- Check OPTIONS method exists
- Verify headers in response
- Check origin matches allowed origins
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/api-gateway/SKILL.md
Popularity
- Repository stars
- 1,050
- Repository forks
- 437
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/itsmostafa/aws-agent-skills/api-gateway)