AWS::S3::Base.establish_connection!(
  :access_key_id     => ENV['AMAZON_ACCESS_KEY_ID'],
  :secret_access_key => ENV['AMAZON_SECRET_ACCESS_KEY']
)
AWS::S3::Base.establish_connection!(
  :access_key_id      => ENV['AMAZON_ACCESS_KEY_ID'],
  :secret_access_key  => ENV['AMAZON_SECRET_ACCESS_KEY'],
  :persistent         => false
)
Change S3 connection persistence to false
Change S3 connection persistence to false
