Skip to content

Instantly share code, notes, and snippets.

@milesw
Created August 16, 2018 12:53
Show Gist options
  • Save milesw/83332215df29fa25239712cd1ba273d9 to your computer and use it in GitHub Desktop.
Save milesw/83332215df29fa25239712cd1ba273d9 to your computer and use it in GitHub Desktop.
Ping a Heroku App Using Serverless / AWS Lambda
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