Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aws/agent-toolkit-for-aws --skill connecting-lambda-to-dynamodb -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/connecting-lambda-to-dynamodb/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/connecting-lambda-to-dynamodb/

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

Similar skills

Everything for Cloud: AWS, Azure, GCP →

From the same set133

aws-amplify Skill for building and deploying full-stack apps with AWS Amplify Gen2. Configure auth, databases, storage, and AI via TypeScript code — supports React, Next.js, Vue, Flutter, and more. CX Codex +1 6,600installs ingesting-into-data-lake Moves data from S3 files, JDBC databases, DynamoDB, BigQuery, or Snowflake into AWS data lake tables. Defaults to S3 Tables or Iceberg and configures Glue jobs. CX Codex +1 6,600installs connecting-lambda-to-api-gateway A skill that walks the agent through wiring an existing Lambda function into Amazon API Gateway: resources, methods, proxy integration, permissions and deploy. CX Codex +1 6,600installs troubleshooting-application-failures A skill that traces application failures through CloudWatch logs: it locates log groups, pulls error patterns and stack traces, then ranks fixes by priority. CX Codex +1 6,400installs troubleshooting-s3-files Diagnoses Amazon S3 Files issues, from mount timeouts and IAM permission errors to sync delays and file conflicts. CX Codex +1 6,300installs launching-ec2-instance-with-best-practices This skill launches EC2 instances with security and cost controls in place. Use it when deploying a new AWS instance and checking its setup after launch. CX Codex +1 6,300installs setting-up-cloudwatch-alarm-notifications Wires CloudWatch alarms to notification channels through SNS: encrypted topics, subscriptions, access policies and alarm actions. CX Codex +1 6,300installs debugging-lambda-timeouts Investigates AWS Lambda timeout failures by inspecting CloudWatch logs, metrics, and configurations. Use it when function runs hit or approach execution limits. CX Codex +1 6,400installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor