Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created April 7, 2022 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardgrantserverless/33b00e821f3ee6b2f0072f3c326ab825 to your computer and use it in GitHub Desktop.
Save richardgrantserverless/33b00e821f3ee6b2f0072f3c326ab825 to your computer and use it in GitHub Desktop.
# worker.js
exports.handler = async function(event) {  
event.Records.forEach(record => {    
const bodyData = JSON.parse(record.body);    
console.log(`Processing ${record.messageId}`);    
// ...  
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment