How to manually schedule job from AWS Lambda?

753 Views Asked by At

I want to replace my cron scheduler. Is there a way to schedule an ActiveJob from a Lambda and Cloudwatch? I'm using the Que gem.

1

There are 1 best solutions below

0
Dev1ce On

You create a schedule for an AWS Lambda to get triggered AWS Cloudwatch Schedule Expressions

AWS Doc - https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions

To manually trigger your AWS Lambda function you can do it either via the AWS Console, SDK, CLI or use API Gateway, with some security to do so.