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?

asked 3 years ago273 views
2 Answers
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
answered 3 years ago
0

Hello navya-aws,

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

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions