connecting-lambda-to-dynamodb — Claude Code skill: what it does
Connects AWS Lambda functions to DynamoDB tables. Guides IAM execution roles, DynamoDB stream event mappings, and troubleshooting.
npx skills add aws/agent-toolkit-for-aws --skill connecting-lambda-to-dynamodb -a claude-codeWhat connecting-lambda-to-dynamodb does
This skill supplies step-by-step procedures for integrating AWS Lambda with DynamoDB. It covers creating the execution IAM role, deploying the function, configuring DynamoDB Streams, and establishing stream event source mappings with read and write permissions.
The documentation focuses heavily on debugging setup failures. When a function fails to trigger, it outlines checks for stream view types and mapping states. If permission errors occur, verify that the AWSLambdaDynamoDBExecutionRole policy is attached and trust policies permit Lambda to assume the role.
For recurring timeout errors, you must actively raise the execution timeout or shrink the batch size setting in your event source mapping.
What it helps with
- connect DynamoDB stream events to AWS Lambda
- configure IAM execution roles with AWSLambdaDynamoDBExecutionRole
- resolve Lambda stream trigger timeout issues by tuning batch size
- verify DynamoDB stream view type and event source mapping status
Example prompts for the agent
- Set up an event source mapping from DynamoDB Streams to my Lambda function
- Fix permission denied error when Lambda reads from DynamoDB stream
- Why is my Lambda function not triggering from DynamoDB table updates?
How to install connecting-lambda-to-dynamodb
1Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill connecting-lambda-to-dynamodb -a claude-code2Manually: put the files in place
~/.claude/skills/connecting-lambda-to-dynamodb/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/connecting-lambda-to-dynamodb/
1Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill connecting-lambda-to-dynamodb -a codex2Manually: put the files in place
.agents/skills/connecting-lambda-to-dynamodb/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill connecting-lambda-to-dynamodb -a cursor2Manually: put the files in place
.cursor/skills/connecting-lambda-to-dynamodb/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aws/agent-toolkit-for-aws connecting-lambda-to-dynamodb2Manually: put the files in place
.github/skills/connecting-lambda-to-dynamodb/SKILL.md1Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill connecting-lambda-to-dynamodb -a gemini-cli2Platform CLI
gemini skills install https://github.com/aws/agent-toolkit-for-aws --path skills/specialized-skills/serverless-skills/connecting-lambda-to-dynamodbManually: put the files in place
.devin/skills/connecting-lambda-to-dynamodb/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill connecting-lambda-to-dynamodb -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about connecting-lambda-to-dynamodb
How to install connecting-lambda-to-dynamodb in Claude Code?
Run npx skills add aws/agent-toolkit-for-aws --skill connecting-lambda-to-dynamodb -a claude-code.
What does connecting-lambda-to-dynamodb do?
It guides the configuration of AWS Lambda triggers on DynamoDB tables, handling IAM role permissions and event stream mappings.
How does the skill resolve Lambda timeout issues on streams?
It directs you to increase the Lambda function timeout or lower the batch size parameter in the event source mapping.
Source text
SKILL.md · Apache-2.0
--- name: connecting-lambda-to-dynamodb description: 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. version: 1 --- # 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](references/lambda-dynamodb-connection.md). ## 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](references/lambda-dynamodb-connection.md) 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.
© aws · Apache-2.0 · aws/agent-toolkit-for-aws