Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Configuration

Kirby Cool edited this page May 22, 2018 · 5 revisions

Configuration

Broker Options

Aws::Broker can be configured via the following:

Aws::Broker.configure do |config|
  config.enabled      = false
  config.queue_prefix = 'prefix'
end

The following options are available:

Option Default Description
enabled true if false, don't trigger API calls to AWS
queue_prefix nil prefix for default queue name ({prefix}-{topic})
topic_prefix nil prefix for topics ({prefix}_{topic}). Should be ASCII letters, numbers, underscores and hyphens. See http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Resource.html
sns Aws::SNS::Client.new An Aws::SNS::Client instance.
sqs Aws::SQS::Client.new An Aws::SQS::Client instance.

AWS Client

AWS Broker wraps the AWS SQS and SNS clients. All configuration is the same as the AWS SDK. See Configuring the AWS SDK for Ruby for details.

Some supported options:

  • AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION env variables
  • shared ~/.aws/credentials file
  • IAM
  • Aws.config[:credentials]
Clone this wiki locally