Skip to content

Instantly share code, notes, and snippets.

@oxlb
Created March 25, 2021 15:59
Show Gist options
  • Save oxlb/3fcc43fd53e7c7cfd5d4de2d0a915855 to your computer and use it in GitHub Desktop.
Save oxlb/3fcc43fd53e7c7cfd5d4de2d0a915855 to your computer and use it in GitHub Desktop.
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