1

I have a backend system which is collection of multiple rest APIs. There is one API which I want to automate i.e. the API should be triggered daily on a particular time like 11 AM.

I am using Jersey-2.0 on tomcat. Services uses AWS-DynamoDB, SNS, SES.

Does AWS have a scheduler which can invoke the API endpoint?

OR

Can I use the same EC2-instance for triggering the API on which the tomcat is hosted?

Kuldeep Yadav
  • 1,664
  • 5
  • 23
  • 41
  • You can use [CloudWatch Events](https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html) to execute lambda function on regular basis which will trigger your api. – Marcin Mar 22 '20 at 10:27

1 Answers1

1

You can either use CloudWatch Events Rule That Triggers on a Schedule or a cron, not corn :) job on your EC2 instance.

Anton
  • 3,587
  • 2
  • 12
  • 27