Last active
March 3, 2017 23:26
-
-
Save jjasonclark/ba8782ef1f2f213b3c0088a32e777778 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import AWS from 'aws-sdk'; | |
const sns = new AWS.SNS(); | |
export const promisePublish = params => sns | |
.publish({ | |
Message: JSON.stringify(params.message), | |
TopicArn: params.topicArn | |
}) | |
.promise(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment