Skip to content

Instantly share code, notes, and snippets.

@chsh
Created May 25, 2015 06:59
Show Gist options
  • Select an option

  • Save chsh/ec6892dceefdfdfd579b to your computer and use it in GitHub Desktop.

Select an option

Save chsh/ec6892dceefdfdfd579b to your computer and use it in GitHub Desktop.
Set AWS region for SES without global settings.
# Gemfile:
# gem 'aws-sdk-rails'
#
credentials = Aws::Credentials.new(ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'])
Aws::Rails.add_action_mailer_delivery_method(
:aws_sdk,
credentials: credentials, region: 'us-west-2'
)
ActionMailer::Base.delivery_method = :aws_sdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment