Created
December 31, 2013 21:50
-
-
Save underbluewaters/8202571 to your computer and use it in GitHub Desktop.
How to send an SNS notification to my phone
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
# 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