AWS Lambda 및 관련 서버리스 서비스를 사용하여 서버리스 애플리케이션을 설계, 구축, 배포, 테스트 및 디버깅합니다.
- GitHub 스타
- 938
- 파일
- 10
- 마지막 커밋
- 2026년 11월 10일
- 라이선스
- Apache-2.0
- 허용된 도구
- —
aws-lambda skill은 무엇을 하나요?
aws-lambda은(는) agent skill입니다. AWS Lambda 및 관련 서버리스 서비스를 사용하여 서버리스 애플리케이션을 설계, 구축, 배포, 테스트 및 디버깅합니다.
skill의 SKILL.md에서 생성된 요약입니다.
aws-lambda skill 정보
AWS에서 서버리스 애플리케이션을 구축하고 관리하는 것이 이 SKILL의 주요 기능입니다. 개발자가 Lambda 함수와 API Gateway, EventBridge, Step Functions와 같은 관련 서비스를 설계, 배포, 테스트 및 디버깅할 수 있도록 지원합니다. 또한 이벤트 기반 시스템 및 Lambda Web Adapter를 사용하는 웹 애플리케이션을 포함하여 프로덕션 환경에 적합한 아키텍처를 구축하기 위한 가이드를 제공합니다.
사용자가 SAM CLI 또는 CDK로 프로젝트를 초기화하거나, DynamoDB 또는 SQS와 같은 서비스의 이벤트 소스 매핑을 구성하거나, 메모리 튜닝 및 콜드 스타트 감소를 통해 성능을 최적화해야 할 때 에이전트가 이 SKILL을 로드해야 합니다. 이 SKILL은 기술 가이드와 베스트 프랙티스를 제공하기 위해 AWS Serverless MCP Server를 활용합니다. 개발 중인 특정 서버리스 구성 요소에 따라 코드형 인프라(IaC), 배포 명령 및 트러블슈팅 단계를 생성합니다.
이 도구는 내구성이 있는 함수(durable functions) 및 관리형 인스턴스와 같은 복잡한 패턴에 대한 전문적인 지원을 제공한다는 점에서 차별화됩니다. 또한 템플릿 수정 후 SAM validate를 실행하여 구성의 정확성을 보장하는 자동 검증 훅을 포함하고 있습니다.
agent가 수행할 수 있는 작업
- 1새 서버리스 프로젝트 초기화SAM CLI 또는 CDK 템플릿을 사용하여 새로운 서버리스 애플리케이션을 생성합니다.
- 2웹 애플리케이션 배포Lambda Web Adapter를 사용하여 풀스택 웹 애플리케이션을 설정합니다.
- 3이벤트 트리거 구성DynamoDB, Kinesis 또는 SQS와 같은 서비스에 대한 이벤트 소스 매핑을 설정합니다.
skill의 SKILL.md를 기반으로 작성되었습니다. 모든 사용 사례는 해당 문서의 인용구와 대조 확인되었습니다.
aws-lambda skill 설치 방법
각 명령은 skill 폴더를 클라이언트의 skills 디렉터리에 복사합니다. 클라이언트를 재시작하거나 새 세션을 시작하여 로드하세요.플러그인에 aws-lambda skill 설치
/plugin marketplace add awslabs/agent-plugins /plugin install aws-serverless@agent-plugins-for-aws
Claude Code에 aws-lambda skill 설치
~/.claude/skills/aws-lambda/SKILL.md
$ npx degit awslabs/agent-plugins/plugins/aws-serverless/skills/aws-lambda ~/.claude/skills/aws-lambdaClaude Code (project)에 aws-lambda skill 설치
.claude/skills/aws-lambda/SKILL.md
$ npx degit awslabs/agent-plugins/plugins/aws-serverless/skills/aws-lambda .claude/skills/aws-lambdaCodex에 aws-lambda skill 설치
~/.agents/skills/aws-lambda/SKILL.md
$ npx degit awslabs/agent-plugins/plugins/aws-serverless/skills/aws-lambda ~/.agents/skills/aws-lambdaGemini CLI에 aws-lambda skill 설치
~/.gemini/skills/aws-lambda/SKILL.md
$ npx degit awslabs/agent-plugins/plugins/aws-serverless/skills/aws-lambda ~/.gemini/skills/aws-lambdaClaude.ai에 aws-lambda skill 설치
npx degit awslabs/agent-plugins/plugins/aws-serverless/skills/aws-lambda aws-lambda && zip -r aws-lambda.zip aws-lambda # claude.ai → Customize → Skills → + → Create skill → Upload a skill → aws-lambda.zip
자동 검사
2026년 11월 15일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 보안 감사는 아닙니다. 에이전트가 실행하기 전에 스크립트를 읽어 보세요. 검사 방식
- 소스 저장소 연결 및 접근 가능awslabs/agent-plugins/plugins/aws-serverless/skills/aws-lambda is public and reachablegithub.com/awslabs/agent-plugins/tree/HEAD/plugins/aws-serve ↗통과
- 오픈 소스 라이선스 (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit 2026-11-10github.com/awslabs/agent-plugins/commits ↗통과
- 스크립트에 다운로드 후 실행이나 자격 증명 탈취가 없음No scripts in the skill folder통과
- SKILL.md에 숨겨진 지침 없음No override phrases, safeguard switches, credential requests or hidden charactersgithub.com/awslabs/agent-plugins/blob/HEAD/plugins/aws-serve ↗통과
- 사전 허용 도구가 제한됨No pre-approved tools; the agent asks before using onegithub.com/awslabs/agent-plugins/blob/HEAD/plugins/aws-serve ↗통과
- SKILL.md가 Agent Skills 형식을 따름Valid name and description; says when to use it; 173 linesgithub.com/awslabs/agent-plugins/blob/HEAD/plugins/aws-serve ↗통과
SKILL.md
GitHub에서 보기AWS Lambda Serverless Development
Design, build, deploy, and debug serverless applications with AWS serverless services. This skill provides access to serverless development guidance through the AWS Serverless MCP Server, helping you to build production-ready serverless applications with best practices built-in.
Use SAM CLI for project initialization and deployment, Lambda Web Adapter for web applications, or Event Source Mappings for event-driven architectures. AWS handles infrastructure provisioning, scaling, and monitoring automatically.
Key capabilities:
- SAM CLI Integration: Initialize, build, deploy, and test serverless applications
- Web Application Deployment: Deploy full-stack applications with Lambda Web Adapter
- Event Source Mappings: Configure Lambda triggers for DynamoDB, Kinesis, SQS, Kafka
- Lambda durable functions: Resilient multi-step applications with checkpointing — see the durable-functions skill for guidance
- Lambda Managed Instances: Run Lambda on dedicated EC2 instances with managed lifecycle — see the managed-instances skill for evaluation, configuration, and migration guidance
- Schema Management: Type-safe EventBridge integration with schema registry
- Observability: CloudWatch logs, metrics, and X-Ray tracing
- Performance Optimization: Right-sizing, cost optimization, and troubleshooting
When to Load Reference Files
Load the appropriate reference file based on what the user is working on:
- Getting started, what to build, project type decision, or working with existing projects -> see references/getting-started.md
- SAM, CDK, deployment, IaC templates, CDK constructs, or CI/CD pipelines -> see the aws-serverless-deployment skill (separate skill in this plugin)
- Web app deployment, Lambda Web Adapter, API endpoints, CORS, authentication, custom domains, or sam local start-api -> see references/web-app-deployment.md
- Event sources, DynamoDB Streams, Kinesis, SQS, Kafka, S3 notifications, or SNS -> see references/event-sources.md
- EventBridge, event bus, event patterns, event design, Pipes, or schema registry -> see references/event-driven-architecture.md
- Durable functions, checkpointing, replay model, saga pattern, or long-running Lambda workflows -> see the durable-functions skill (separate skill in this plugin with full SDK reference, testing, and deployment guides)
- Lambda Managed Instances, LMI, capacity providers, multi-concurrency, EC2-backed Lambda, cold start elimination, or Lambda cost optimization with Reserved Instances -> see the managed-instances skill (separate skill in this plugin for evaluation, configuration, and migration)
- Orchestration, workflows, or Durable Functions vs Step Functions -> see references/orchestration-and-workflows.md
- Step Functions, ASL, state machines, JSONata, Distributed Map, SDK integrations, TestState API, mocking service integrations, or state machine unit tests -> see the aws-step-functions skill for comprehensive guidance
- Observability, logging, tracing, metrics, alarms, or dashboards -> see references/observability.md
- Optimization, cold starts, memory tuning, cost, or streaming -> see references/optimization.md
- Powertools, idempotency, feature flags, parameters, parser, batch processing, or data masking -> see references/powertools.md
- Troubleshooting, errors, debugging, or deployment failures -> see references/troubleshooting.md
Best Practices
Project Setup
- Do: Use
sam_initorcdk initwith an appropriate template for your use case - Do: Set global defaults for timeout, memory, runtime, and tracing (
Globalsin SAM, construct props in CDK) - Do: Use AWS Lambda Powertools for structured logging, tracing, metrics (EMF), idempotency, and batch processing — available for Python, TypeScript, Java, and .NET
- Don't: Copy-paste templates from the internet without understanding the resource configuration
- Don't: Use the same memory and timeout values for all functions regardless of workload
Security
- Do: Follow least-privilege IAM policies scoped to specific resources and actions
- Do: Use
secure_esm_*tools to generate correct IAM policies for event source mappings - Do: Store secrets in AWS Secrets Manager or SSM Parameter Store, never in environment variables
- Do: Use VPC endpoints instead of NAT Gateways for AWS service access when possible
- Do: Enable Amazon GuardDuty Lambda Protection to monitor function network activity for threats (cryptocurrency mining, data exfiltration, C2 callbacks)
- Don't: Use wildcard (
*) resource ARNs or actions in IAM policies - Don't: Hardcode credentials or secrets in application code or templates
- Don't: Store user data or sensitive information in module-level variables — execution environments can be reused across different callers
Idempotency
- Do: Write idempotent function code — Lambda delivers events at least once, so duplicate invocations must be safe
- Do: Use the AWS Lambda Powertools Idempotency utility (backed by DynamoDB) for critical operations
- Do: Validate and deduplicate events at the start of the handler before performing side effects
- Don't: Assume an event will only ever be processed once
For topic-specific best practices, see the dedicated guide files in the reference table above.
Lambda Limits Quick Reference
Limits that developers commonly hit:
| Resource | Limit |
|---|---|
| Function timeout | 900 seconds (15 minutes) |
| Memory | 128 MB – 10,240 MB |
| 1 vCPU equivalent | 1,769 MB memory |
| Synchronous payload (request + response) | 6 MB each |
| Async invocation payload | 1 MB |
| Streamed response | 200 MB |
| Deployment package (.zip, uncompressed) | 250 MB |
| Deployment package (.zip upload, compressed) | 50 MB |
| Container image | 10 GB |
| Layers per function | 5 |
| Environment variables (aggregate) | 4 KB |
/tmp ephemeral storage |
512 MB – 10,240 MB |
| Account concurrent executions (default) | 1,000 (requestable increase) |
| Burst scaling rate | 1,000 new executions per 10 seconds |
Check Service Quotas for your account limits: aws lambda get-account-settings
Troubleshooting Quick Reference
| Error | Cause | Solution |
|---|---|---|
Build Failed |
Missing dependencies | Run sam_build with use_container: true |
Stack is in ROLLBACK_COMPLETE |
Previous deploy failed | Delete stack with aws cloudformation delete-stack, redeploy |
IteratorAge increasing |
Stream consumer falling behind | Increase ParallelizationFactor and BatchSize. Use esm_optimize |
| EventBridge events silently dropped | No DLQ, retries exhausted | Add RetryPolicy + DeadLetterConfig to rule target |
| Step Functions failing silently | No retry on Task state | Add Retry with Lambda.ServiceException, Lambda.AWSLambdaException |
| Durable Function not resuming | Missing IAM permissions | Add lambda:CheckpointDurableExecution and lambda:GetDurableExecutionState — see durable-functions skill |
For detailed troubleshooting, see references/troubleshooting.md.
Configuration
AWS CLI Setup
This skill requires that AWS credentials are configured on the host machine:
Verify access: Run aws sts get-caller-identity to confirm credentials are valid
SAM CLI Setup
- Install SAM CLI: Follow the SAM CLI installation guide
- Verify: Run
sam --version
Container Runtime Setup
- Install a Docker compatible container runtime: Required for
sam_local_invokeand container-based builds - Verify: Use an appropriate command such as
docker --versionorfinch --version
MCP Server Configuration
Write access is enabled by default. The plugin ships with --allow-write in .mcp.json, so the MCP server can create projects, generate IaC, and deploy on behalf of the user.
Access to sensitive data (like Lambda and API Gateway logs) is not enabled by default. To grant it, add --allow-sensitive-data-access to .mcp.json.
SAM Template Validation Hook
This plugin includes a PostToolUse hook that runs sam validate automatically after any edit to template.yaml or template.yml. If validation fails, the error is returned as a system message so you can fix it immediately. The hook requires SAM CLI and jq to be installed; if either is missing, validation is skipped with a system message. Users can disable it via /hooks.
Verify: Run jq --version
Language selection
Default: TypeScript
Override syntax:
- "use Python" → Generate Python code
- "use JavaScript" → Generate JavaScript code
When not specified, ALWAYS use TypeScript
IaC framework selection
Default: CDK
Override syntax:
- "use CloudFormation" → Generate YAML templates
- "use SAM" → Generate YAML templates
When not specified, ALWAYS use CDK
Serverless MCP Server Unavailable
- Inform user: "AWS Serverless MCP not responding"
- Ask: "Proceed without MCP support?"
- DO NOT continue without user confirmation
Resources
이 스킬의 파일
10aws-lambda skill 질문
Claude Code에 aws-lambda skill을 어떻게 설치하나요?
npx degit awslabs/agent-plugins/plugins/aws-serverless/skills/aws-lambda ~/.claude/skills/aws-lambda를 실행합니다. Claude Code는 ~/.claude/skills(모든 프로젝트) 또는 .claude/skills(한 프로젝트)에서 skills를 로드하며, 설명이 작업과 일치할 때 skill을 사용합니다.
aws-lambda skill을 사용할 수 있는 클라이언트는 무엇인가요?
Agent Skills 형식을 읽는 모든 클라이언트(Claude Code, Codex, Gemini CLI, claude.ai(ZIP으로 업로드))가 사용할 수 있습니다. skill 내 스크립트는 클라이언트가 코드 실행을 허용하는 경우에만 실행됩니다.
AWS Lambda의 최대 함수 타임아웃은 얼마인가요?
최대 함수 타임아웃은 900초, 즉 15분입니다.
Lambda 함수에서 보안 비밀(secrets)을 어떻게 처리해야 하나요?
환경 변수를 사용하는 대신 AWS Secrets Manager 또는 SSM Parameter Store에 보안 비밀을 저장해야 합니다.
의존성 누락으로 인해 빌드가 실패하면 어떻게 해야 하나요?
use_container: true 플래그와 함께 sam_build를 실행해야 합니다.
이벤트가 한 번만 처리된다고 가정해도 안전한가요?
아니요, Lambda는 이벤트를 최소 한 번 전달하므로 중복 호출 시에도 안전하도록 멱등성(idempotent)을 갖춘 함수 코드를 작성해야 합니다.