Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Aws Lambda Functions

  • 571 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

aws-lambda-functions is a Claude Code skill that creates, configures, and invokes AWS Lambda functions with IAM roles, zip deploys, and Node.js handlers for developers who prototype serverless APIs via the AWS CLI.

About

aws-lambda-functions is a useful-ai-prompts skill documenting AWS CLI patterns to stand up Lambda from scratch. It covers creating a lambda-execution-role with sts:AssumeRole for lambda.amazonaws.com, attaching AWSLambdaBasicExecutionRole, zipping index.js into function.zip, and calling aws lambda create-function with a Node.js runtime. Developers reach for this skill when they need repeatable shell commands for IAM plus deployment instead of clicking through the console or writing one-off Terraform for a single function experiment. The excerpts focus on minimal viable Lambda creation and invocation workflows suitable for hack-day APIs or webhook handlers.

  • IAM execution role creation with lambda.amazonaws.com trust and AWSLambdaBasicExecutionRole attach
  • aws lambda create-function from ZIP with runtime, handler, timeout, memory, and environment Variables
  • aws lambda invoke with JSON payload and response file capture
  • Node.js handler template parsing API Gateway body JSON and S3 Records event branches

Aws Lambda Functions by the numbers

  • 571 all-time installs (skills.sh)
  • Ranked #355 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill aws-lambda-functions

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs571
repo stars305
Security audit3 / 3 scanners passed
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

How do you deploy AWS Lambda with the CLI?

Create, configure, and invoke AWS Lambda functions with IAM roles, zip deploys, and Node.js handlers using AWS CLI patterns.

Who is it for?

Backend developers spinning up a first AWS Lambda with CLI commands who already know Node.js handlers and want copy-paste IAM plus zip deploy steps.

Skip if: Teams standardizing on SAM, CDK, or Terraform multi-environment pipelines instead of manual aws CLI function bootstrapping.

When should I use this skill?

The user wants to create, configure, or invoke AWS Lambda with IAM roles and zip deploys using AWS CLI and Node.js.

What you get

IAM execution role, zipped deployment package, and a created Node.js Lambda function ready to invoke.

  • IAM execution role
  • Zipped Lambda deployment package
  • Deployed Lambda function

Files

SKILL.mdMarkdownGitHub ↗

AWS Lambda Functions

Table of Contents

Overview

AWS Lambda enables you to run code without provisioning or managing servers. Build serverless applications using event-driven triggers, pay only for compute time consumed, and scale automatically with workload.

When to Use

  • API endpoints and webhooks
  • Scheduled batch jobs and data processing
  • Real-time file processing (S3 uploads)
  • Event-driven workflows (SNS, SQS)
  • Microservices and backend APIs
  • Data transformations and ETL jobs
  • IoT and sensor data processing
  • WebSocket connections

Quick Start

Minimal working example:

# Create Lambda execution role
aws iam create-role \
  --role-name lambda-execution-role \
  --assume-role-policy-document '{
    "Version": "2012-10-17",
    "Statement": [{
      "Effect": "Allow",
      "Principal": {"Service": "lambda.amazonaws.com"},
      "Action": "sts:AssumeRole"
    }]
  }'

# Attach basic execution policy
aws iam attach-role-policy \
  --role-name lambda-execution-role \
  --policy-arn arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole

# Create function from ZIP
zip function.zip index.js
aws lambda create-function \
  --function-name my-function \
  --runtime nodejs18.x \
  --role arn:aws:iam::ACCOUNT:role/lambda-execution-role \
  --handler index.handler \
  --zip-file fileb://function.zip \
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Basic Lambda Function with AWS CLIBasic Lambda Function with AWS CLI
Lambda Function with Node.jsLambda Function with Node.js
Terraform Lambda DeploymentTerraform Lambda Deployment
Lambda with SAM (Serverless Application Model)Lambda with SAM (Serverless Application Model)
Lambda Layers for Code SharingLambda Layers for Code Sharing

Best Practices

✅ DO

  • Use environment variables for configuration
  • Implement proper error handling and logging
  • Optimize package size and dependencies
  • Set appropriate timeout and memory
  • Use Lambda Layers for shared code
  • Implement concurrency limits
  • Enable X-Ray tracing for debugging
  • Use reserved concurrency for critical functions

❌ DON'T

  • Store sensitive data in code
  • Create long-running operations (>15 min)
  • Ignore cold start optimization
  • Forget to handle concurrent executions
  • Ignore CloudWatch metrics
  • Use too much memory unnecessarily

Related skills

How it compares

Use aws-lambda-functions for quick CLI bootstrap; adopt IaC skills when functions must be reproducible across staging and production accounts.

FAQ

Which IAM policy does aws-lambda-functions attach?

aws-lambda-functions attaches arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole to a lambda-execution-role created with a lambda.amazonaws.com sts:AssumeRole trust policy via aws iam CLI commands.

How does aws-lambda-functions package code?

aws-lambda-functions zips index.js into function.zip, then calls aws lambda create-function with the Node.js runtime, following the repository’s basic Lambda CLI walkthrough for first deploys.

Is Aws Lambda Functions safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.