Integrate AWS Lambda and DynamoDB for Windows on Arm IoT apps
Introduction
Background
Create the AWS Lambda Function
Implement the AWS Lambda Function
Test Lambda Function
Next Steps
Integrate AWS Lambda and DynamoDB for Windows on Arm IoT apps
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Select Node.js 20.x as the runtime. Add the code in the Code source editor under
index.mjs, which indicates an ECMAScript module.Ensure the table contains records written by the IoT emulator referenced in the prerequisite Learning Path Create IoT applications with Windows on Arm and AWS IoT Core](/learning-paths/laptops-and-desktops/win_aws_iot/). The example code expects a table named
SensorReadings with a numeric temperature attribute.Edit
TABLE_NAME, ATTRIBUTE_NAME, and the Region configured in DynamoDBClient within index.mjs. Save and redeploy the function before testing again.Scroll to the Code source section of the function and paste the code into
index.mjs. The .mjs extension designates the file as an ES module.The Lambda console shows the execution status and a return value that includes the average temperature computed from the scanned items.