filmov
tv
Create SQS Queue Using AWS Nodejs SDK | SQS Queue Nodejs SDK #aws #sqsqueue #createsqsqueue #nodesqs
Показать описание
Go to services, cloud9 environment from the console
Leave the default settings
Select the Amazon linux click the next step,
copy the code below:
var AWS = require('aws-sdk');
/**
* Don't hard-code your credentials!
* Create an IAM role for your EC2 instance instead.
*/
// Set your region
var sqs = new AWS.SQS();
//Create an SQS Queue
var queueUrl;
var params = {
QueueName: 'backspace-lab', /* required */
Attributes: {
ReceiveMessageWaitTimeSeconds: '20',
VisibilityTimeout: '60'
}
};
else {
//successful response
}
});
run the command in the bash section
1. npm install aws-sdk
Leave the default settings
Select the Amazon linux click the next step,
copy the code below:
var AWS = require('aws-sdk');
/**
* Don't hard-code your credentials!
* Create an IAM role for your EC2 instance instead.
*/
// Set your region
var sqs = new AWS.SQS();
//Create an SQS Queue
var queueUrl;
var params = {
QueueName: 'backspace-lab', /* required */
Attributes: {
ReceiveMessageWaitTimeSeconds: '20',
VisibilityTimeout: '60'
}
};
else {
//successful response
}
});
run the command in the bash section
1. npm install aws-sdk