Created
November 14, 2020 12:19
-
-
Save RichardSilveira/81a4fad4eadcbfab318a7cd7448e7e92 to your computer and use it in GitHub Desktop.
Event Rule to warn up a lambda function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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