Amazon Simple Queue Service in Localhost

0

It is possible to use the AWS SQS (NODE)

Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #44; cURL error: Could not resolve host: https (cURL error code 6). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.https://'

질문됨 5년 전645회 조회
2개 답변
0
수락된 답변

you can configure the SDk like

 // Load the SDK for JavaScript
var AWS = require('aws-sdk');
// Set the region 
AWS.config.update({region: 'us-west-2'});

List your Queue like

 // Load the AWS SDK for Node.js
var AWS = require('aws-sdk');
// Set the region 
AWS.config.update({region: 'REGION'});

// Create an SQS service object
var sqs = new AWS.SQS({apiVersion: '2012-11-05'});

var params = {};

sqs.listQueues(params, function(err, data) {
  if (err) {
    console.log("Error", err);
  } else {
    console.log("Success", data.QueueUrls);
  }
});

For more details please follow this guide from AWS : https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/sqs-examples-using-queues.html

답변함 5년 전
0

This is what i was looking for thanks you so much for sharing actually i am leaning node and aws both same and newbie so thanks a lot.

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠