Part of the codecentric blog post "Processing protocol buffers messages with AWS IoT Core"
This is the AWS Lambda code for processing protocol buffers messages and storing contained data into DynamoDB.
Execute build.sh or build and zip manually. Afterwards provide the relative path to the root folder of this project to the CDK project and deploy the stack.
GOOS=linux go build cmd/iot-lambda/main.go
- compile golang code for linux architecture (i.e. AWS Lambda runtime environment)zip function.zip main
- add to zip archive