Created
April 28, 2020 21:28
-
-
Save ismaelc/6b4051d60e222b9b3614adf94e5fffca to your computer and use it in GitHub Desktop.
This file contains 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
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