Skip to content

Instantly share code, notes, and snippets.

@ismaelc
Created April 28, 2020 21:28
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 ismaelc/6b4051d60e222b9b3614adf94e5fffca to your computer and use it in GitHub Desktop.
Save ismaelc/6b4051d60e222b9b3614adf94e5fffca to your computer and use it in GitHub Desktop.
module.exports.sqsEvent = async (event, context, callback) => {
// Read the SQS message we sent to ourselves
const record = event.Records[0];
const thread = record.messageAttributes.Thread.stringValue;
const channel = record.messageAttributes.Channel.stringValue;
const token = record.messageAttributes.Token.stringValue;
let url = record.messageAttributes.URL.stringValue;
//Do something with the URL
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment