connecting-lambda-to-dynamodb
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseConnecting Lambda to DynamoDB
将Lambda连接到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.
本领域专长涵盖将AWS Lambda函数连接到DynamoDB表的相关内容,包括IAM执行角色创建、函数部署、DynamoDB流配置以及事件源映射设置。
Connect a Lambda function to DynamoDB
将Lambda函数连接到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.
要通过IAM角色、流和事件源映射完成端到端的Lambda-DynamoDB集成,请严格遵循以下步骤。详见Lambda-DynamoDB连接步骤。
Troubleshooting
故障排除
Lambda function not triggering
Lambda函数未触发
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.
验证事件源映射处于激活状态,DynamoDB流已启用并配置了正确的视图类型,且执行角色具备适当权限。详情请参阅完整的步骤。
Permission denied errors
权限拒绝错误
Check the IAM role has attached and the trust
policy allows Lambda to assume it.
AWSLambdaDynamoDBExecutionRole检查IAM角色是否已附加,且信任策略允许Lambda承担该角色。
AWSLambdaDynamoDBExecutionRoleFunction timeout issues
函数超时问题
Increase the timeout setting or adjust the batch size in the event source mapping.
增加超时设置或调整事件源映射中的批处理大小。