Skip to content

Instantly share code, notes, and snippets.

@lolgolflol
Created June 13, 2019 08:28
Show Gist options
  • Save lolgolflol/14636166d46d235cc8af09ca43083863 to your computer and use it in GitHub Desktop.
Save lolgolflol/14636166d46d235cc8af09ca43083863 to your computer and use it in GitHub Desktop.
Graphinfo:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: graphinfo/
Handler: graphinfo
Runtime: go1.x
Tracing: Active # https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html
Events:
# MinuteScheduler:
# Type: Schedule
# Properties:
# Schedule: rate(1 minute)
# Input: '{"timeframe":"minute"}'
HourlyScheduler:
Type: Schedule
Properties:
Schedule: rate(1 hour)
Input: '{"timeframe":"hour"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment