Connecting Lambda To Dynamodb

作者 aws188af2f810ce無授權條款2.8K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

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.

僅含說明DevOps & Cloud
AI 產生的概覽

設定 AWS Lambda 與 DynamoDB 的整合,包含 IAM 角色、串流與事件來源映射。

功能
提供將 AWS Lambda 函式端對端連接到 DynamoDB 資料表的流程,涵蓋 IAM 執行角色建立、函式部署、DynamoDB 串流設定以及事件來源映射設定。也針對函式未被觸發、權限遭拒錯誤與逾時等常見故障提供疑難排解指引。詳細流程位於此技能所引用的參考文件中。
適用情境
適用於設定 Lambda 與 DynamoDB 整合、處理 DynamoDB 串流事件,或部署無伺服器事件驅動架構的情境。也適合用來排查 Lambda 函式為何未被 DynamoDB 串流觸發,或為何出現權限錯誤。
執行需求
僅為說明文件,未附帶指令碼。需要能存取 AWS Lambda、DynamoDB、IAM 與 DynamoDB 串流,並具備建立與設定這些資源的權限。

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 [blocked].

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 [blocked] 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/agent-toolkit-for-aws位於skills/specialized-skills/serverless-skills/connecting-lambda-to-dynamodb提交188af2f

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架