Skip to content

Instantly share code, notes, and snippets.

@thanakijwanavit
Created April 29, 2020 00:47
Show Gist options
  • Save thanakijwanavit/ae5cecf975333d54774c73ba8c0899f1 to your computer and use it in GitHub Desktop.
Save thanakijwanavit/ae5cecf975333d54774c73ba8c0899f1 to your computer and use it in GitHub Desktop.
sam template to add a trigger event every hour
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Parameters:
NotificationEmail:
Type: String
Resources:
CheckWebsitePeriodically:
Type: AWS::Serverless::Function
Properties:
Handler: LambdaFunctionOverHttps.handler
Runtime: runtime
Policies: AmazonDynamoDBFullAccess
Events:
CheckWebsiteScheduledEvent:
Type: Schedule
Properties:
Schedule: rate(1 hour)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment