AWS API Gateway Playbook
A hands-on skill for creating, securing, deploying, and debugging AWS API Gateway REST/HTTP/WebSocket APIs with CLI and SAM examples.
Web & APIIntermediate★ 1,158⑂ 443AI score 8/10Last updated: Sep 21, 2026
What it does
- Explains the differences between HTTP APIs, REST APIs, and WebSocket APIs, plus which integration type to pick.
- Gives end-to-end
aws apigateway/aws apigatewayv2command sequences for creating APIs, resources, methods, Lambda proxy integrations, and stage deployments. - Covers CORS configuration, Cognito-backed JWT authorizers, and best practices for security, performance, and reliability (throttling, caching, WAF, access logs).
- Provides a troubleshooting matrix for 403, 502, 504, and CORS failures, including the correct Lambda response shape.
Who it's for
- Backend and full-stack developers shipping serverless APIs on Lambda + API Gateway.
- DevOps engineers managing API infrastructure through AWS CLI or SAM templates.
- On-call engineers who need to localize API errors quickly.
Example uses
- "Create an HTTP API fronting my Lambda and deploy it to prod" → generates commands from create-api through create-deployment, plus a SAM template alternative.
- "Enable CORS for https://example.com" → update-api for HTTP APIs, or OPTIONS + MOCK integration wiring for REST APIs.
- "My API returns 502 Bad Gateway" → checks the Lambda response format and integration timeout as the likely causes.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/itsmostafa/aws-agent-skills/HEAD/skills/api-gateway/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/api-gateway folder from the GitHub repo itsmostafa/aws-agent-skills into my ~/.claude/skills/api-gateway/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/itsmostafa/aws-agent-skills.git /tmp/aws-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/aws-agent-skills/skills/api-gateway ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and confirm Git is installed with
git --version. - Clone the repository:
git clone https://github.com/itsmostafa/aws-agent-skills.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy just this skill:
cp -r aws-agent-skills/skills/api-gateway ~/.claude/skills/ - Make sure the AWS CLI is available (
aws --version) and runaws configureto set credentials and a default region. - Restart Claude Code and try a prompt like "Set up an API Gateway HTTP API for my Lambda function" to trigger the skill.
View source on GitHub ↗License: MIT