🖥

#rails + shoryuken gem で #AWS SQS にキューを作成する

2019/09/12に公開

Gemfile

gem 'shoryuken'
gem 'aws-sdk-sqs'

install

bundle install

shoryuken.html

aws:
  access_key_id:      <%= ENV['AWS_ACCESS_KEY_ID'] %>
  secret_access_key:  <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
  region:             <%= ENV['AWS_REASION'] %>

env


export AWS_ACCESS_KEY_ID=xxxxxxxxxxxx
export AWS_SECRET_ACCESS_KEY=yyyyyyyyyyyyyyyyyyyyy
export AWS_REGION=us-east-2

command

bundle exec shoryuken sqs create example1

result

Queue example1 was successfully created. Queue URL https://sqs.us-east-2.amazonaws.com/842696858454/example1

AWSで確認

image

Original by Github issue

https://github.com/YumaInaura/YumaInaura/issues/2417

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

Twitter

https://twitter.com/YumaInaura

公開日時

2019-09-12

Discussion