aws avatar

Connecting Lambda To Dynamodb

This handles the full setup for connecting Lambda to DynamoDB, including IAM execution roles, stream configuration, and event source mapping. You'd use this when building event-driven architectures where Lambda needs to react to table changes or just read/write data. The skill includes a specific connection procedure and covers the usual gotchas like permission denied errors, inactive event source mappings, and timeout issues from incorrect batch sizes. It's focused on the infrastructure wiring rather than application logic, so if you already know what policies and stream settings you need, this should get everything connected properly without hunting through AWS docs.

skills.sh installs
6.9K
GitHub stars
3.4K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/aws/agent-toolkit-for-aws
Categories
Backend & APIs, AI & Agent Building, Cloud & Infrastructure, Databases
First seen
May 16, 2026

More from aws/agent-toolkit-for-aws

All 56
1aws avatardebugging-lambda-timeoutsaws/agent-toolkit-for-awsDebugs AWS Lambda function timeout failures by systematically analyzing function configuration, CloudWatch logs and metrics, VPC/networking, cold starts, memory6.8Kskills.sh installs
2aws avataraws-lambda-durable-functionsaws/agent-toolkit-for-awsBuilds resilient, long-running, multi-step applications with AWS Lambda durable functions with automatic state persistence, retry logic, and orchestration for l6.2Kskills.sh installs
3forcedotcom avatarplatform-metadata-api-context-getforcedotcom/sf-skillsREQUIRED companion for Salesforce metadata generation — load this schema/API-context skill in the SAME turn as ANY metadata generation skill; if you load a gene6.2Kskills.sh installs
4aws avataraws-lambda-managed-instancesaws/agent-toolkit-for-awsEvaluates, configures, and migrates workloads to AWS Lambda Managed Instances (LMI). Runs Lambda functions on EC2 instances in the user's account while AWS mana6.2Kskills.sh installs
5affaan-m avatarredis-patternsaffaan-m/eccRedis data structure patterns, caching strategies, distributed locks, rate limiting, pub/sub, and connection management for production applications.5.7Kskills.sh installs
6github avatarwinmd-api-searchgithub/awesome-copilotFind and explore Windows desktop APIs. Use when building features that need platform capabilities — camera, file access, notifications, UI controls, AI/ML, sens5.7Kskills.sh installs