Configure Rails 3 for S3 bucket using fog.yml
<p>I have this Rails 3.2 application passed on from the previous freelancer in my company. I would like to know as to how to configure this existing S3 bucket to my new EC2 Instance.<br>
Access to AWS is configured in fog.yml by using fog gem as well as carrierwave gem.</p>

<p>What am I missing in this fog.yml file   </p>

<pre><code>Fog.credentials_path = Rails.root.join('config/fog.yml')


CarrierWave.configure do |config|  
config.fog_credentials = {  
  }  
config.fog_directory  = "directory-name"  
 config.fog_public     = false  
config.fog_attributes = {'Cache-Control'=&gt;'max-age=315576000'}
end
</code></pre>