I have two AWS-Lamdbda functions and I want Lambda A to determine a certain point in time like the 4. May 2022 10:00. Then I want Lambda B to be scheduled to run at this specific point in time.
I'm probably able to achieve this by programmatically creating a AWS eventbrigde rule with Lambda A and use the cron pattern to match my point in time. Inside of Lambda B I would then need to delete that rule, because it's for a one time use.
Can one of you think of a more elegant way to achieve this ?
Thanks you for your wisdom !
Edit:
My point in time is dynamic. I call a public API to find the point for Lambda B to run, so I can't use EventBridge directly. I plan on running Lambda A once a day to see if a new Lambda B run is necessary.