Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RichardSilveira/81a4fad4eadcbfab318a7cd7448e7e92 to your computer and use it in GitHub Desktop.
Save RichardSilveira/81a4fad4eadcbfab318a7cd7448e7e92 to your computer and use it in GitHub Desktop.
Event Rule to warn up a lambda function
WarnUpFunctionXXX:
Type: "AWS::Events::Rule"
Properties:
ScheduleExpression: cron(0/10 10-01 * * ? *)
Name: WarnUpFunctionXXX
State: ENABLED
RoleArn: arn:aws:iam::644846694994:role/my-role
Targets:
- Arn: !GetAtt XXXLambdaFunction.Arn
Id: "TargetWarnFunctionXXX"
Input: "{\"wakeup\":true}"
# I prefer to create an warnup settings by function 'cause there is a limitation about the number of targets by rule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment