Created
August 16, 2018 12:53
-
-
Save milesw/83332215df29fa25239712cd1ba273d9 to your computer and use it in GitHub Desktop.
Ping a Heroku App Using Serverless / AWS Lambda
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
service: myapp-ping | |
provider: | |
name: aws | |
runtime: nodejs8.10 | |
environment: | |
PING_URL: https://myapp.herokuapp.com | |
functions: | |
ping: | |
handler: handler.ping | |
events: | |
- schedule: | |
# Ping every 15 minutes between 7am-10pm CST (times are UTC) | |
rate: cron(0/15 02-17 * * ? *) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment