connecting-lambda-to-dynamodb

Automate IAM roles, Lambda deployment, DynamoDB streams, and event source mappings.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/AndreKurait/claude-marketplace-test --skill connecting-lambda-to-dynamodb-andrekurait
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: connecting-lambda-to-dynamodb
Source: https://github.com/AndreKurait/claude-marketplace-test/tree/main/skills/specialized-skills/serverless-skills/connecting-lambda-to-dynamodb
Command: npx skills add https://github.com/AndreKurait/claude-marketplace-test --skill connecting-lambda-to-dynamodb-andrekurait

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Lambda-based applications often struggle to securely and efficiently connect to DynamoDB, manage IAM roles, and configure DynamoDB streams and event source mappings.

Core Features & Use Cases

  • IAM role provisioning: create roles for Lambda with DynamoDB permissions and CloudWatch logging.
  • DynamoDB integration: enable streams and configure event source mappings for Lambda processing.
  • Use Case: build reactive, serverless apps that respond to DynamoDB stream events for real-time processing.

Quick Start

Follow these steps to create an IAM role, Lambda function, DynamoDB table with streams, and an event source mapping to enable Lambda processing of DynamoDB events.

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 a Lambda function to DynamoDB streams?

To connect Lambda to DynamoDB streams, you need to configure an event source mapping that links your DynamoDB stream (set to NEW_AND_OLD_IMAGES) to the Lambda function, allowing real-time processing of database changes.

What IAM permissions are required for Lambda to access DynamoDB?

Lambda requires an IAM role with permissions to read DynamoDB streams and write CloudWatch logs. You must provision this role before deploying the function and configuring the event source mapping.

How do I set up an event source mapping for a serverless application?

Setting up an event source mapping involves creating a DynamoDB table with streams enabled and linking it to a deployed Lambda function. This configuration allows the function to automatically trigger and process stream events.

When do I need DynamoDB streams with NEW_AND_OLD_IMAGES?

You need DynamoDB streams with NEW_AND_OLD_IMAGES when your serverless application must process real-time data modifications and requires visibility into the item's state both before and after the change.

Can I automate Lambda deployment and DynamoDB integration together?

Yes, Lambda deployment and DynamoDB integration can be automated end-to-end. This includes provisioning IAM roles, deploying the runtime, enabling streams, and configuring the event source mapping in one workflow.