Retrieve SQS url
$ npm install --save aws-sqs-geturl
const awsGetSqsUrl = require('aws-sqs-geturl');
awsGetSqsUrl('somequeue').then(url => {
console.log(url);
//=> https://sqs.eu-west-1.amazonaws.com/123456789111/somequeue
});
awsGetSqsUrl('anotherqueue', {awsAccountId: '123456789012'}).then(url => {
console.log(url);
//=> https://sqs.us-west-1.amazonaws.com/123456789012/anotherqueue
});
Returns a Promise for the queue URL.
Type: string
Name of queue
Type: string
Default: caller account
AWS account ID of the account that created the queue.
MIT © Simon Jang