SNSClient callback now returns the more accepted Node.js method of
function(err, msg). v0.1 sent both the error and message as a single argument.
$ npm install aws-snsclient
var http =SNSClient = ;var client =;http;
Your client only needs to accept one callback, which accepts an object of the decoded message sent from the SNS topic.
message is the raw JSON. You'll probably want access to:
message.Message to get the actual message that you sent.
The initial confirmation request sent out by Amazon is automatically confirmed at the same endpoint. No additional effort needed.
Signatures are automatically verified, but we can optionally verify the correct account id, region, and topics.
var auth =verify: false;var client =;
var auth =region: 'us-east-1'account: 'xxx'topic: 'xxx';var client =;
var express =app = expressSNSClient = ;var auth =region: 'us-east-1'account: 'xxx'topic: 'xxx'var client =;app;app;