AWS Lambda

Manage AWS Lambda functions via AWS CLI/API. Deploy, invoke, and monitor serverless functions.

modbender Updated 12 repo stars

File contents

AWS Lambda

Serverless compute.

Environment

export AWS_ACCESS_KEY_ID="xxxxxxxxxx"
export AWS_SECRET_ACCESS_KEY="xxxxxxxxxx"
export AWS_REGION="us-east-1"

List Functions

aws lambda list-functions

Invoke Function

aws lambda invoke --function-name myFunction --payload '{"key": "value"}' output.json

Create Function

aws lambda create-function --function-name myFunction \
  --runtime nodejs18.x --handler index.handler \
  --role arn:aws:iam::123456789:role/lambda-role \
  --zip-file fileb://function.zip

Update Function Code

aws lambda update-function-code --function-name myFunction --zip-file fileb://function.zip

Get Logs

aws logs tail /aws/lambda/myFunction --follow

Links

modbender/skill-library-mcp/tree/main/data/aws-lambda commit b846d6367a

Frequently asked questions

npx skillmds@latest add modbender/aws-lambda