Skip to content

Instantly share code, notes, and snippets.

@RishiRajSahu
Created February 4, 2020 05:13
Show Gist options
  • Save RishiRajSahu/701f0d2acd49a7ebb6dbe5e7d8dfc7c9 to your computer and use it in GitHub Desktop.
Save RishiRajSahu/701f0d2acd49a7ebb6dbe5e7d8dfc7c9 to your computer and use it in GitHub Desktop.
TargetLambda.js
/**
* Handler for teams events
*/
module.exports.handler = async event => {
try {
if (event && event.Records && event.Records[0] && event.Records[0].Sns) {
var body = JSON.parse(event.Records[0].Sns.Message)
console.log('Body : ', body)
}
} catch (e) {
console.log(e)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment