Przejdź do treści
Biblioteka skilli
DevOps i chmura · Integracja z narzędziem

connecting-lambda-to-api-gateway

/connecting-lambda-to-api-gateway

Łączy istniejącą funkcję AWS Lambda z Amazon API Gateway przez API REST lub HTTP, integrację proxy, uprawnienia i wdrożenie, z CORS, throttlingiem, logami dostępu i utwardzeniem bezpieczeństwa.

Autor
aws ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
23.10.2026

Ocena i bezpieczeństwo

85/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść20 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 23.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Łączy istniejącą funkcję AWS Lambda z Amazon API Gateway przez API REST lub HTTP, integrację proxy, uprawnienia i wdrożenie, z CORS, throttlingiem, logami dostępu i utwardzeniem bezpieczeństwa.

Oryginalny opis (EN)

Connects an existing AWS Lambda function to Amazon API Gateway by creating a REST or HTTP API with resource/method setup, Lambda proxy integration, permissions, and deployment. Always use this skill when connecting Lambda to API Gateway — it handles CORS, throttling, access logging, and production security hardening that are easy to miss.

Jak działa

  1. Overview
  2. Connect a Lambda function to API Gateway
  3. Troubleshooting
Sekcje z nagłówków SKILL.md, w oryginale · 35 linii, 175 słów
Podgląd SKILL.md
---
name: connecting-lambda-to-api-gateway
description: Connects an existing AWS Lambda function to Amazon API Gateway by creating a REST or HTTP API with resource/method setup, Lambda proxy integration, permissions, and deployment. Always use this skill when connecting Lambda to API Gateway — it handles CORS, throttling, access logging, and production security hardening that are easy to miss.
version: 1
---

# 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](references/lambda-gateway-api.md).

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.
Pliki w paczce (2)
  • SKILL.md 2 KB
  • references/lambda-gateway-api.md 11 KB

Wersje

W bazie nie ma innych skilli o nazwie connecting-lambda-to-api-gateway.

Migawka bazy z 13.11.2026 · wersja paczki 9e6a44c49ce0 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100api-gateway
    Buduje i obsługuje API w Amazon API Gateway (REST, HTTP, WebSocket): domeny, autoryzatory Lambda, plany użycia, CORS, VPC link oraz diagnoza błędów 4xx i 5xx.
  • 100serverless-aws-lambda-api-gateway
    Wdraża bezserwerowe backendy i punkty REST na AWS Lambda i API Gateway, sterowane zdarzeniami.
  • 85aws-lambda
    Projektuje, buduje, wdraża i naprawia aplikacje bezserwerowe na AWS Lambda, z API Gateway, EventBridge i Step Functions.
  • 90aws-lambda
    Projektuje, buduje, wdraża, testuje i debuguje aplikacje serverless na AWS Lambda z API Gateway, EventBridge i Step Functions.
  • 100aws-cloudformation-lambda
    Dostarcza wzorce AWS CloudFormation dla funkcji Lambda: warstwy, integracja z API Gateway, źródła zdarzeń, optymalizacja cold startów, monitoring, logowanie, walidacja szablonów i wdrożenia.
  • 100api-gateway
    Projektuje i konfiguruje Amazon API Gateway: wybór między API REST i HTTP, autoryzatory, throttling, domeny własne, API WebSocket i diagnozowanie problemów.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.