Skip to content

jklewa/azure-autoshutdown-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

azure-autoshutdown-notify

An AWS lambda function that forwards Azure's VM auto-shutdown notification (Webhook) to your Pushbullet account.

Notification example screenshot

Setup

  1. Download the latest release's .zip file here
  2. Create a Blank (Python 2.7) Function in the AWS Lambda Management console.
  3. Upload the .zip file in place of the default code.\
  4. 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”

Building this project for development

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