From ad8115fedbc2bc595a53af16bb7f55a32b74475b Mon Sep 17 00:00:00 2001 From: Alex Wood Date: Fri, 15 Jan 2016 10:58:46 -0800 Subject: [PATCH] Add Note About IAM Roles for Amazon EC2 --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 326bb4f2..59381966 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,11 @@ creds = Aws::Credentials.new(creds['AccessKeyId'], creds['SecretAccessKey']) Aws::Rails.add_action_mailer_delivery_method(:aws_sdk, credentials: creds, region: 'us-east-1') ``` +If you're running your Ruby on Rails application on Amazon Elastic Compute +Cloud, keep in mind that the AWS SDK for Ruby will automatically check Amazon +EC2 instance metadata for credentials. Learn more: +[IAM Roles for Amazon EC2](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html) + ## AWS SDK for Ruby Logging Uses the Rails Logger Automatically, the AWS SDK for Ruby will be configured to use the built-in Rails