Scheduling local lambda function

0

I have an application in which there is a Raspberry Pi as Greengrass Core and multiple ESP32 as Devices and together they form a Greengrass Group. Now, I want to have a local shadow update to a specific Device at a specific time. I implemented scheduling of lambda function with cloudwatch triggers and cron jobs but this will not work if the internet is down.

I was thinking of using cron tool (https://www.raspberrypi.org/documentation/linux/usage/cron.md) for Unix systems to schedule a local lambda function which publishes the desired MQTT message to local shadow service.

Is there any way to accomplish this?

已提問 3 年前檢視次數 283 次
2 個答案
0

Hi PegasusAutoma,

Thanks for your question.
Unfortunately there isn't a way to schedule a local lambda function.
You would have to use a pinned lambda and then refactor your function code to handle the scheduling for you.
Please let me know if you have any follow up questions.

Thanks,
Navya.

AWS
已回答 3 年前
0

Hello navya-aws,

Thanks for the clarification. I'll try pinned lambda function as workaround for this as of now.

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南