I am new to AWS IOT Greengrass & Lambda. I am working on a proof of concept that:
- Send data from IOT device to gateway (running greengrass software).
- process the data with Lambda function that is deployed on the gateway, which then forward the data thru Kinesis Firehose to S3 bucket.
I have already done the second part and deployed the long-lived Lambda function on the gateway. For my next step, due to the hardware available, I am required to send the data from the device to the gateway with HTTP post request.
My question is, what is the best way to invoke the deployed long-lived lambda function with the payload that I receive from the post request? Or am I approaching the problem incorrectly?
Many thanks