New advertisers: 50% off your first month with code FIRSTMONTHSee slots
aws avatar

Connecting Lambda To Dynamodb

Step-by-step setup that wires a Lambda function to DynamoDB, covering IAM roles, streams, and event source mapping.

skills.sh installs
7.1K
GitHub stars
3.5K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the full integration: execution role creation, function deployment, stream enablement, and event source mapping setup
  • Includes a reference procedure for the connection steps plus troubleshooting for untriggered functions, permission errors, and timeouts
  • Checks that the event source mapping is active, the stream view type is set, and the role has AWSLambdaDynamoDBExecutionRole with a trust policy for Lambda
  • Designed for teams building event-driven serverless pipelines that process DynamoDB stream records

Install

$ npx -y skills add aws/agent-toolkit-for-aws --skill connecting-lambda-to-dynamodb -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Connecting Lambda to DynamoDB

Overview

Domain expertise for connecting AWS Lambda functions to DynamoDB tables, including IAM execution role creation, function deployment, DynamoDB stream configuration, and event source mapping setup.

Connect a Lambda function to DynamoDB

To set up end-to-end Lambda-DynamoDB integration with IAM roles, streams, and event source mapping, follow the procedure exactly. See Lambda-DynamoDB connection procedure.

Troubleshooting

Lambda function not triggering

Verify the event source mapping is active, DynamoDB streams are enabled with the correct view type, and the execution role has proper permissions. See the full procedure for details.

Permission denied errors

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

Function timeout issues

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

Details

Repository
github.com/aws/agent-toolkit-for-aws
Categories
DevOps & Cloud, Backend & APIs
First seen
May 16, 2026

More from aws/agent-toolkit-for-aws

All 54

Similar to Connecting Lambda To Dynamodb

More DevOps & Cloud