Agent skill
aws-lambda
Build and deploy serverless functions on AWS Lambda. Configure triggers, manage permissions, and optimize performance. Use when implementing serverless applications.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/aws-lambda-bagelhole-devops-security-agen
Metadata
Additional technical details for this skill
- author
- devops-skills
- version
- 1.0
SKILL.md
AWS Lambda
Build serverless applications with AWS Lambda.
Create Function
# Create function
aws lambda create-function \
--function-name myfunction \
--runtime python3.11 \
--handler app.handler \
--role arn:aws:iam::xxx:role/lambda-role \
--zip-file fileb://function.zip
# Update code
aws lambda update-function-code \
--function-name myfunction \
--zip-file fileb://function.zip
Function Code
# app.py
import json
def handler(event, context):
return {
'statusCode': 200,
'body': json.dumps({'message': 'Hello!'})
}
API Gateway Integration
# Create REST API
aws apigateway create-rest-api --name myapi
# Add Lambda permission
aws lambda add-permission \
--function-name myfunction \
--statement-id apigateway \
--action lambda:InvokeFunction \
--principal apigateway.amazonaws.com
Environment & Configuration
# Set environment variables
aws lambda update-function-configuration \
--function-name myfunction \
--environment "Variables={DB_HOST=xxx,API_KEY=yyy}"
# Set memory and timeout
aws lambda update-function-configuration \
--function-name myfunction \
--memory-size 256 \
--timeout 30
Best Practices
- Minimize cold starts
- Use layers for dependencies
- Implement proper error handling
- Use provisioned concurrency for latency-sensitive functions
- Monitor with CloudWatch
Related Skills
- terraform-aws - IaC deployment
- aws-iam - Execution roles
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?