Created
March 25, 2021 15:59
-
-
Save oxlb/3fcc43fd53e7c7cfd5d4de2d0a915855 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const { SQS, listParams, createParams } = require('./util.js'); | |
module.exports = { | |
listSQS: async () => { | |
SQS.listQueues(listParams, function(err, data) { | |
if (err) { | |
console.log("Error", err); | |
} else { | |
console.log("Success", data.QueueUrls); | |
} | |
}); | |
}, | |
createSqsQueue: async () => { | |
SQS.createQueue(createParams, function(err, data) { | |
if (err) { | |
console.log("Error", err); | |
} else { | |
console.log("Success", data.QueueUrl); | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment