Anton Zolotov

I'm a software developer, entrepreneur and CEO of GunpowderLabs, a web and mobile development consultancy. Contact me.

Copy a Remote File to S3 with Ruby

require 'net/http'

  access_key_id: 'your-access-key-id',
  secret_access_key: 'your-secret-access-key'

# Use the Google Logo as an example
url = URI("")

Net::HTTP.start( do |http|
  resp = http.get(url.path), resp.body, 'yourbucketname', access: :public_read)

blog comments powered by Disqus