connecting-lambda-to-dynamodb

Automate Lambda-DynamoDB integration with IAM roles and event source mappings.

2.3k|234|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/aws/agent-toolkit-for-aws --skill connecting-lambda-to-dynamodb-aws
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: connecting-lambda-to-dynamodb
Source: https://github.com/aws/agent-toolkit-for-aws/tree/main/skills/specialized-skills/serverless-skills/connecting-lambda-to-dynamodb
Command: npx skills add https://github.com/aws/agent-toolkit-for-aws --skill connecting-lambda-to-dynamodb-aws

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automates building end-to-end Lambda-DynamoDB integrations by configuring IAM roles, deploying Lambda functions, enabling DynamoDB streams, and wiring event source mappings.

Core Features & Use Cases

  • IAM role creation and attachment for Lambda-DynamoDB integration
  • Lambda function deployment and configuration with DynamoDB streams
  • Event source mapping setup to process DynamoDB stream events
  • Use Case: Real-time processing of DynamoDB changes in Lambda for serverless apps

Quick Start

Create a Lambda function to process DynamoDB stream events and verify the end-to-end integration with a sample record.

Frequently Asked Questions about connecting-lambda-to-dynamodb

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect an AWS Lambda function to a DynamoDB stream?

You connect AWS Lambda to DynamoDB streams by setting up an event source mapping. This automates IAM role creation, Lambda deployment, and stream configuration to trigger real-time processing of DynamoDB stream events.

What IAM permissions does Lambda need to process DynamoDB stream events?

Lambda needs IAM roles configured for DynamoDB stream access. The integration automates IAM role creation and attachment to allow the Lambda function to read stream records and perform real-time processing of table changes.

When should I use event source mapping for DynamoDB streams in serverless apps?

Use event source mapping for DynamoDB streams when building serverless apps that react to data modifications. It suits real-time processing use cases by automatically triggering Lambda functions upon table changes.

Can I deploy a Lambda function to react to DynamoDB changes without manual stream configuration?

Yes, you can automate the end-to-end integration. This configures DynamoDB streams, deploys the Lambda function, and wires the event source mapping automatically, eliminating manual stream setup for serverless applications.

Does this Lambda DynamoDB integration support capturing both old and new item images?

Yes, the integration supports capturing both old and new item images. It configures DynamoDB streams specifically with NEW_AND_OLD_IMAGES, allowing your Lambda function to compare before and after states of modified records.