Skip to content

Have AWS Lambda run this every morning and send a summary email of daily scheduled activities. Data is held in a Google Sheet document. Config is held in AWS SSM.

Notifications You must be signed in to change notification settings

kiinoda/daily_schedule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daily Schedule

This code will send schedule summaries over email.

Cron expressions syntax

You can use the syntax below to specify the time.

cron(Minutes Hours Day-of-month Month Day-of-week Year)

All fields are required and time zone is UTC only.

Field Values Wildcards
Minutes 0-59 , - * /
Hours 0-23 , - * /
Day-of-month 1-31 , - * ? / L W
Month 1-12 or JAN-DEC , - * /
Day-of-week 1-7 or SUN-SAT , - * ? / L #
Year 192199 , - * /

In below example, we use cron syntax to define schedule event that will trigger our cronHandler function every second minute every Monday through Friday

functions:
  cronHandler:
    handler: handler.run
    events:
      - schedule: cron(0/2 * ? * MON-FRI *)

Detailed information about cron expressions in available in official AWS docs.

About

Have AWS Lambda run this every morning and send a summary email of daily scheduled activities. Data is held in a Google Sheet document. Config is held in AWS SSM.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published