An AWS lambda function that forwards Azure's VM auto-shutdown notification (Webhook) to your Pushbullet account.
- Download the latest release's .zip file here
- Create a Blank (Python 2.7) Function in the AWS Lambda Management console.
- Upload the .zip file in place of the default code.\
- The function requires two environment variables (configured in AWS console):
BITLY_ACCESS_TOKEN
: Used to shorten restart delay links - Fetch your access token from Bitly's OAuth API (per bitly_api==0.3):
curl -u “username:password” -X POST “https://api-ssl.bitly.com/oauth/access_token”
PUSHBULLET_API_KEY
: API key can be generated from your Account Settings page (per pushbullet.py==0.10.0)
This projex uses Apex to build the lambda function code. pip
must be in your PATH to fetch external dependencies.
apex build azureShutdownNotify > out.zip