aws-lambda

Build serverless applications with AWS Lambda.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "aws-lambda" with this command: npx skills add bagelhole/devops-security-agent-skills/bagelhole-devops-security-agent-skills-aws-lambda

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

linux-administration

No summary provided by upstream source.

Repository SourceNeeds Review
Security

linux-hardening

No summary provided by upstream source.

Repository SourceNeeds Review
Security

sops-encryption

No summary provided by upstream source.

Repository SourceNeeds Review
Security

vpn-setup

No summary provided by upstream source.

Repository SourceNeeds Review