Simple AWS Lambda code to publish message to Amazon SNS
Details found at zhenkai.xyz blog. Will be used together with Terraform to provision the whole application.
Getting Started
Zip your code and upload to lambda. Alternatively, copy and paste the code into Cloud9. Remember to attach the right permissions to your lambda function.
Author
Zhen Kai @ https://zhenkai.xyz
Version
1.0.0
Notes
Refer to https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SNS.html#publish-property for further details on the AWS Javascript SDK.