Exception notification extension for Amazon SNS
- Ruby 2.2 or greater
- Rails 4.0 or greater
Add the following line to your application's Gemfile:
gem 'exception_notification_sns'ExceptionNotificationSNS adds sns notifier for exception_notification gem. It is used as a rack middleware, or in the environment you want it to run. In most cases you would want ExceptionNotificationSNS to run on production. Thus, you can make it work by putting the following lines in your config/environments/production.rb:
Rails.application.config.middleware.use ExceptionNotification::Rack,
sns: {
access_key_id: 'AWS_ACCESS_KEY_ID',
secret_access_key: 'AWS_SECRET_ACCESS_KEY',
region: 'AWS_REGION',
topic_arn: 'AWS_SNS_TOPIC_ARN',
subject: 'MESSAGE SUBJECT'
}String, required
AWS access key ID
String, required
AWS secret access key
String, required
AWS region
String, required
AWS SNS topic arn
String
Notification subject
For more information about exception_notification gem on which this gem was built, visit exception_notification.
Copyright (c) 2019 Matej Minažek, released under the MIT license.