360 Secure SkillHub
360 安全技能中心

connecting-lambda-to-dynamodb

该 Skill 提供将 AWS Lambda 函数连接到 DynamoDB 的领域知识,涵盖 IAM 执行角色创建、函数部署、DynamoDB 流配置和事件源映射设置,并包含触发、权限和超时问题的排查指引。

分类:开发
aws
热度 47.96
最近更新 2026-10-18 16:45:16

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add aws/agent-toolkit-for-aws/connecting-lambda-to-dynamodb
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
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.

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.