connecting-lambda-to-api-gateway

द्वारा aws

मौजूदा AWS Lambda फ़ंक्शन को Amazon API Gateway से जोड़ता है, REST या HTTP API को resource/method सेटअप, Lambda proxy integration, … के साथ बनाकर।

npx skills add https://github.com/aws/agent-toolkit-for-aws --skill connecting-lambda-to-api-gateway

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.

aws की और Skills

analyzing-release-readiness
aws
प्री-मर्ज रिलीज़ तैयारी समीक्षा को GitHub PR, GitLab MR, या स्थानीय ब्रांच पर ट्रिगर करें। जब उपयोगकर्ता जोखिम, शुद्धता,… के लिए कोड परिवर्तनों का विश्लेषण करना चाहता है तब उपयोग करें।
scanning-with-aws-security-agent
aws
वर्कस्पेस पर AWS Security Agent स्कैन चलाएँ — स्रोत को AWS पर अपलोड करता है, प्रबंधित Security Agent सेवा से स्कैन करता है, और रैंक किए गए, सत्यापित… परिणाम लौटाता है।
coordinating-multi-space-devops-agent
aws
एक Claude Code सत्र से कई AgentSpaces में AWS DevOps Agent का समन्वय करें — प्रश्नों को सही स्थान (prod बनाम staging बनाम knowledge) पर भेजें,…
aws-security
aws
AWS सुरक्षा सेवाओं और वर्कफ़्लो को कवर करता है — Security Hub V2 (OCSF) findings, connectors, aggregators, automation rules, और security posture summaries;…
querying-aws-sagemaker-catalog
aws
SageMaker Catalog एसेट मेटाडेटा टेबल्स पर SQL एनालिटिक्स चलाता है जिन्हें S3 Tables में Apache Iceberg के रूप में निर्यात किया गया है। इसमें गवर्नेंस क्वेरी, एसेट ग्रोथ ट्रैकिंग शामिल है…
agents-connect
aws
अपने एजेंट को Gateway के माध्यम से बाहरी APIs, टूल्स, या सेवाओं से जोड़ते समय, या Cedar नीतियों के साथ टूल एक्सेस प्रतिबंधित करते समय उपयोग करें। Gateway सेटअप, लक्ष्य…
aurora-dsql
aws
Aurora DSQL क्लस्टरों की प्रावधानिंग और प्रबंधन करता है, psql या DSQL कनेक्टर्स के माध्यम से जुड़ता है, स्कीमा प्रबंधित करता है, क्वेरी चलाता है, MySQL से माइग्रेट करता है, क्वेरी योजनाओं का निदान करता है,…
transitgateway
aws
AWS Transit Gateway कॉन्फ़िगर करता है: एक हब बनाना और VPCs को जोड़ना, रूट टेबल के साथ ट्रैफ़िक को विभाजित करना, एक हब के माध्यम से ईग्रेस और इंस्पेक्शन को केंद्रीकृत करना…