The Weather Platform uses several Lambda functions to manage IoT devices and provide APIs for data access.
IoT Device Management:
addThing
: Register new weather devicesdeleteThing
: Remove weather devicesfetchThings
: List all registered devicesgetIoTEndpoint
: Get IoT Core endpoint URLData Access:
getDataset
: Retrieve processed weather datasetsgetTotalReadings
: Get telemetry statisticsPurpose: Register new IoT weather devices Trigger: API Gateway (POST) Functionality:
Purpose: Get statistics from the data lake
Integration: Connects to itea-weather-data-lake-storage
Functionality:
Purpose: Retrieve processed weather datasets Integration: Connects to processed data bucket Functionality:
Lambda functions are automatically deployed with the Amplify backend:
# Functions deploy with sandbox
npx ampx sandbox --profile ws1-amplify
Functions automatically receive:
Lambda functions are fully integrated with Amplify’s authentication and authorization system.