serverless-sam
Version:
Serverless framework plugin to export AWS SAM templates for a service
20 lines (16 loc) • 405 B
YAML
service: aws-python-scheduled-cron
frameworkVersion: ">=1.2.0 <2.0.0"
provider:
name: aws
runtime: python2.7
functions:
cron:
handler: handler.run
events:
# Invoke Lambda function every minute
- schedule: rate(1 minute)
secondCron:
handler: handler.run
events:
# Invoke Lambda function every 2nd minute from Mon-Fri
- schedule: cron(0/2 * ? * MON-FRI *)