LoginSignup
8
8

More than 5 years have passed since last update.

AWS SQS + Node.js 送信サンプル

Last updated at Posted at 2014-06-12

キューにメッセージを送信するサンプル


AWS = require "aws-sdk"
AWS.config.loadFromPath "aws.json"

url = "ここにキューのURL"

sqs = new AWS.SQS().client

params =
  MessageBody: "あああ"
  QueueUrl: url
  DelaySeconds: 0

sqs.sendMessage params, (err, data) =>
  console.log "### ERROR!", err if err
  console.log "data", data if data

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8