mcpField
C
connecting-lambda-to-dynamodb

connecting-lambda-to-dynamodb

github.com/awsCloud & DevOps3.3k6.6k installsUpdated 1d ago
Repository

About connecting-lambda-to-dynamodb

A domain-expertise skill for setting up and diagnosing AWS Lambda integrations with DynamoDB. It covers IAM roles, deployment, streams, and event source mappings.

Key features

  1. 01IAM execution role setup
  2. 02Lambda deployment guidance
  3. 03DynamoDB stream configuration
  4. 04Event source mapping setup
  5. 05Integration troubleshooting

Use cases

  1. 01Connect a Lambda function to a DynamoDB table
  2. 02Diagnose a Lambda function that does not trigger
  3. 03Resolve permission or timeout issues

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aws/agent-toolkit-for-aws --skill connecting-lambda-to-dynamodb

After installing, type/connecting-lambda-to-dynamodbin Claude Code to confirm it loaded.

Bundled filesreferences/lambda-dynamodb-connection.md

Details

From the project README

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.

Comments

Markdown supported