Connecting Lambda To Dynamodb
AWSOfficialPublished by AWS
- Skill
- Workflow
- Cloud and DevOps
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured workflow for connecting AWS Lambda functions to DynamoDB tables. It guides the user through the creation of necessary infrastructure, including IAM execution roles with appropriate permissions, DynamoDB tables with stream support, and the event source mapping required for event-driven processing. The skill includes validation steps, infrastructure confirmation, and troubleshooting guidance for common issues like permission errors or trigger failures.
What it does
- Creates IAM execution roles with necessary DynamoDB and CloudWatch permissions
- Provisions DynamoDB tables with stream support enabled
- Sets up event source mapping between DynamoDB streams and Lambda functions
- Generates Python-based Lambda function code for processing stream events
- Validates AWS resource naming conventions and tool availability
- Provides troubleshooting steps for common integration errors
When to use it
- When setting up a new serverless event-driven architecture on AWS
- When you need to trigger a Lambda function based on DynamoDB data changes
- When automating the deployment of integrated Lambda and DynamoDB resources
- When troubleshooting existing Lambda-DynamoDB connectivity or permission issues
Advantages
- Ensures consistent infrastructure setup through a standardized procedure
- Reduces manual configuration errors by validating parameters and naming conventions
- Includes explicit user approval steps for infrastructure changes
- Provides built-in troubleshooting paths for common deployment failures
Usage examples
- “I need to connect a new Lambda function named order-processor to a DynamoDB table called orders.”
- The agent will initiate the workflow, request the required parameters, verify tool availability, and guide you through the creation of the IAM role, table, and event mapping.
- “My Lambda function is not triggering from my DynamoDB stream. Can you help?”
- The agent will guide you through troubleshooting steps, including verifying the event source mapping status, stream view types, and IAM role permissions.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/aws/connecting-lambda-to-dynamodb/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip connecting-lambda-to-dynamodb.zip -d .agents/skills
Documentation by AWS
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.
Files
- ATTRIBUTION.mdAdded by AutoGineer948 B
- LICENSELicence file added by AutoGineer9.9 KiB
- NOTICELicence file added by AutoGineer67 B
- SKILL.md1.3 KiB
- references/lambda-dynamodb-connection.md8.4 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- AWS
- Publisher
- AWS (Official)
- Source
- aws/agent-toolkit-for-aws · skills/specialized-skills/serverless-skills/connecting-lambda-to-dynamodb · commit 0a218f8
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- NOTICE (added by AutoGineer from NOTICE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by AWS.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download connecting-lambda-to-dynamodb.zip