Skip to content

Instantly share code, notes, and snippets.

@underbluewaters
Created December 31, 2013 21:50
Show Gist options
  • Save underbluewaters/8202571 to your computer and use it in GitHub Desktop.
Save underbluewaters/8202571 to your computer and use it in GitHub Desktop.
How to send an SNS notification to my phone
# Must have AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY set as env vars
AWS = require('aws-sdk')
sns = new AWS.SNS({region: 'us-east-1'})
sns.publish {
Message: "Time for 2oz Cascade Hops addition",
TopicArn: "arn:aws:sns:us-east-1:134826063113:Homebrew"
}, (err, data) ->
console.log(err, data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment