edmamerto
edmamerto

Reputation: 8155

Serverless Framework With AWS, scheduling

I have a function that runs on a schedule. The crontab looks like this:

  - schedule:
    rate: cron(0 0 1 ? * FRI *)

When I deploy the function I'm not sure what triggers it in the aws lambda. In the console I only see the API gateway

enter image description here

How do I know what triggers my schedule that I set in serverless?

Upvotes: 0

Views: 84

Answers (1)

hoangdv
hoangdv

Reputation: 16127

Just only using rate or cron not both. This mean your syntax is wrong.

A suggestion for your case

...
    events:
      - schedule: cron(0 0 1 ? * FRI *)
...

Official document Serverless Schedule

Upvotes: 2

Related Questions