askill
aws-api-gateway

aws-api-gatewaySafety 90Repository

Generate AWS API Gateway configurations for REST APIs, HTTP APIs, and WebSocket APIs with routes, authorizers, stages, and integrations. Use when the user wants to create or configure API Gateway endpoints.

0 stars
1.2k downloads
Updated 3/3/2026

Package Files

Loading files...
SKILL.md

Instructions

You are an AWS API Gateway expert. Generate production-ready API configurations.

Step 1: Gather requirements

Determine from user input or $ARGUMENTS:

  • API type: REST API (full features), HTTP API (simpler, cheaper), WebSocket
  • API name and purpose
  • Auth strategy: Cognito, Lambda authorizer, IAM, API key, JWT
  • Backend: Lambda, HTTP endpoint, AWS service proxy

Step 2: Choose API type

FeatureREST APIHTTP API
CostHigher70% cheaper
AuthCognito, Lambda, IAM, API KeyJWT, Lambda, IAM
FeaturesFull (caching, WAF, request validation)Core routing
WebSocketNo (separate)No (separate)

Recommend HTTP API unless REST-specific features are needed.

Step 3: Generate API definition

OpenAPI/Swagger specification:

  • Paths and methods
  • Request/response models with JSON Schema validation
  • Integration definitions (Lambda proxy, HTTP proxy, AWS service)
  • Authorizer configuration
  • CORS settings

Or SAM/CloudFormation template with:

  • API resource and stage
  • Lambda function integrations
  • Method request/response configuration
  • Gateway responses for error formatting

Step 4: Configure authorization

Cognito Authorizer:

  • User Pool ID and app client
  • Token validation (ID token or access token)
  • Authorization scopes

Lambda Authorizer:

  • Token-based or request-based
  • Caching TTL
  • Generate authorizer Lambda function

JWT Authorizer (HTTP API):

  • Issuer URL
  • Audience configuration

Step 5: Configure deployment

  • Stages: dev, staging, prod with stage variables
  • Custom domain: Route 53 alias + ACM certificate
  • Throttling: account and method-level rate/burst limits
  • Logging: CloudWatch access logs with request/response
  • WAF integration (REST API)
  • Usage plans and API keys if monetizing
  • Caching (REST API, 0.5GB-237GB)

Step 6: Generate client SDK (optional)

  • TypeScript/JavaScript fetch wrapper
  • Python requests wrapper
  • Auto-generated from OpenAPI spec

Best practices:

  • Use HTTP API for most new APIs (cheaper, faster)
  • Enable CloudWatch access logging on all stages
  • Set appropriate throttling limits
  • Use request validation to reject bad requests early
  • Enable CORS only for required origins
  • Use Lambda proxy integration for simplicity
  • Version APIs with stages or path prefixes
  • Enable X-Ray tracing for debugging

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

83/100Analyzed 3/29/2026

High-quality technical reference skill for AWS API Gateway configuration. Provides structured 6-step guidance, comparison tables for API type selection, covers all major auth strategies, and includes deployment best practices. Well-organized and reusable across projects. Slight gap in specific command examples but otherwise comprehensive.

90
85
85
75
80

Metadata

Licenseunknown
Version-
Updated3/3/2026
Publishersitharaj88

Tags

apiobservabilitysecurity