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年前614ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ