Skip to content

Commit

Permalink
Explain how to pass AWS configuration options
Browse files Browse the repository at this point in the history
  • Loading branch information
netoneko authored and sorentwo committed Apr 23, 2013
1 parent cb1e403 commit cfa2186
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -45,6 +45,20 @@ CarrierWave.configure do |config|
end
```

If you want to supply your own AWS configuration, put it inside `config.aws_credentials` like this:

```ruby
config.aws_credentials = {
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
config: AWS.config(my_aws_options)
}
```

`AWS.config` will return `AWS::Core::Configuration` object which is used through `aws-sdk` gem. Browse
[Amazon docs](http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/Core/Configuration.html) for additional info. For
example, if you want to turn off SSL for your asset URLs, you could simply set `AWS.config(use_ssl: false)`.

## Contributing

1. Fork it
Expand Down

0 comments on commit cfa2186

Please sign in to comment.