Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aws avatar

Connecting Lambda To Api Gateway

  • 3k installs
  • 2.2k repo stars
  • Updated August 4, 2026
  • aws/agent-toolkit-for-aws

connecting-lambda-to-api-gateway wires Lambda to API Gateway REST APIs with CORS, auth, and hardening.

About

The connecting-lambda-to-api-gateway skill provides domain expertise for wiring Lambda to Amazon API Gateway REST APIs. It covers API creation, resource and method setup, Lambda proxy integration, IAM permissions, deployment, CORS, authorization types (NONE, AWS_IAM, COGNITO_USER_POOLS, CUSTOM), API keys, throttling, access logging, and production security hardening easy to miss manually. Procedure reference lambda-gateway-api.md must be followed exactly. Troubleshooting section addresses common integration failures. Use whenever connecting Lambda to API Gateway so CORS, permissions, and logging are not skipped. REST API creation with Lambda proxy integration and deployment steps Authorization types: NONE, AWS_IAM, Cognito pools, or CUSTOM authorizers CORS, throttling, access logging, and production security hardening Follows lambda-gateway-api.md procedure exactly for reliable wiring Handles permissions and integration failures commonly missed in manual setup connecting-lambda-to-api-gateway wires Lambda to API Gateway REST APIs with CORS, auth, and hardening Deployed REST API with proxy integration, permissions, CORS, and production controls User connects Lambda to API Gateway o.

  • REST API creation with Lambda proxy integration and deployment steps.
  • Authorization types: NONE, AWS_IAM, Cognito pools, or CUSTOM authorizers.
  • CORS, throttling, access logging, and production security hardening.
  • Follows lambda-gateway-api.md procedure exactly for reliable wiring.
  • Handles permissions and integration failures commonly missed in manual setup.

Connecting Lambda To Api Gateway by the numbers

  • 2,997 all-time installs (skills.sh)
  • +400 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #139 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

connecting-lambda-to-api-gateway capabilities & compatibility

Capabilities
api creation · lambda proxy integration · cors setup · auth configuration · production hardening
Works with
aws
Use cases
api development · devops
npx skills add https://github.com/aws/agent-toolkit-for-aws --skill connecting-lambda-to-api-gateway

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs3k
repo stars2.2k
Security audit3 / 3 scanners passed
Last updatedAugust 4, 2026
Repositoryaws/agent-toolkit-for-aws

How do I expose an existing Lambda function through API Gateway correctly?

Connect existing AWS Lambda functions to API Gateway REST APIs with proxy integration, CORS, auth, throttling, and production hardening.

Who is it for?

AWS teams connecting Lambda to HTTP APIs without missing security defaults.

Skip if: Lambda function authoring without API exposure requirements.

When should I use this skill?

User connects Lambda to API Gateway or needs CORS and auth on AWS HTTP APIs.

What you get

Deployed REST API with proxy integration, permissions, CORS, and production controls.

  • API Gateway REST API
  • Lambda integration
  • deployed API stage

Files

SKILL.mdMarkdownGitHub ↗

Connecting Lambda to API Gateway

Overview

Domain expertise for creating Amazon API Gateway REST APIs and connecting them to existing Lambda functions. Covers API creation, resource and method setup, Lambda proxy integration, CORS configuration, security controls, deployment, and testing.

Connect a Lambda function to API Gateway

To create a REST API and wire it to a Lambda function, follow the procedure exactly. See Lambda to API Gateway connection procedure.

The procedure supports configurable authorization types (NONE, AWS_IAM, COGNITO_USER_POOLS, CUSTOM), optional API key requirements, CORS setup, and production security hardening including throttling and access logging.

Troubleshooting

502 Bad Gateway

The Lambda function must return a proxy-compatible response with statusCode, headers, and a stringified body. See the full procedure for format details.

Permission denied invoking Lambda

Ensure lambda:InvokeFunction permission was added with the correct API Gateway source ARN. See the full procedure for details.

CORS errors in browser

Verify enable_cors was set to true, the OPTIONS method was created, and CORS headers are configured in both method and integration responses.

Related skills

FAQ

Which API type is covered?

Amazon API Gateway REST APIs with Lambda proxy integration.

What auth options are supported?

NONE, AWS_IAM, COGNITO_USER_POOLS, CUSTOM, plus optional API keys.

Why use this skill vs manual setup?

It enforces CORS, throttling, access logging, and permissions steps often skipped.

Is Connecting Lambda To Api Gateway safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Cloud & Infrastructureintegrationsbackend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.