Back to Skills

connecting-lambda-to-dynamodb

Connects an AWS Lambda function to DynamoDB with IAM roles, stream event source mapping, and read/write permissions. Use when setting up Lambda-DynamoDB integration, processing DynamoDB stream events, or deploying serverless event-driven architectures.

1,843stars163forksUpdated 7/14/2026

Security Assessment

Safe(100/100)
Security Score100/100

About connecting-lambda-to-dynamodb

connecting-lambda-to-dynamodb packages domain expertise for wiring an AWS Lambda function to a DynamoDB table end to end. It addresses the common serverless integration problem of correctly setting up IAM execution roles, deploying the function, enabling DynamoDB streams, and configuring event source mapping so that stream events reliably trigger the function. It is intended for use when building Lambda-DynamoDB integrations, processing DynamoDB stream events, or deploying event-driven serverless architectures.

The skill centers on a single authoritative procedure that covers IAM execution role creation, function deployment, DynamoDB stream configuration, and event source mapping setup, and it instructs following that procedure exactly (documented in references/lambda-dynamodb-connection.md). It also includes a troubleshooting section for the most common failure modes: a Lambda function not triggering (verify the event source mapping is active, that DynamoDB streams are enabled with the correct view type, and that the execution role has proper permissions), permission denied errors (confirm the IAM role has AWSLambdaDynamoDBExecutionRole attached and the trust policy allows Lambda to assume it), and function timeout issues (increase the timeout setting or adjust the batch size in the event source mapping).

It targets AWS developers and cloud engineers building serverless, event-driven systems. The guidance is grounded in AWS primitives (IAM roles and trust policies, DynamoDB streams and view types, event source mappings, and the AWSLambdaDynamoDBExecutionRole managed policy), so users need appropriate AWS permissions to create roles, deploy functions, and configure streams. For the full step-by-step setup, the skill defers to its referenced connection procedure.

FAQ

What does this skill set up?

It connects an AWS Lambda function to a DynamoDB table end to end, including IAM execution role creation, function deployment, DynamoDB stream configuration, and event source mapping setup. The full procedure is in references/lambda-dynamodb-connection.md.

My Lambda function is not triggering. What should I check?

Verify that the event source mapping is active, that DynamoDB streams are enabled with the correct view type, and that the execution role has proper permissions.

How do I resolve permission denied errors?

Check that the IAM role has the AWSLambdaDynamoDBExecutionRole managed policy attached and that the trust policy allows Lambda to assume the role.

How do I handle function timeout issues?

Increase the Lambda timeout setting, or adjust the batch size in the event source mapping.

All Files

2 files
SKILL.md1.3 KB
View
references/lambda-dynamodb-connection.md8.4 KB
View

Install connecting-lambda-to-dynamodb

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill