chrishein / s3_uploader

Multithreaded recursive directory upload to S3 using FOG

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to pass the host name

puneeth-k opened this issue · comments

Hi,

Is there any option to pass the end point while doing the s3 upload?

For example: I need to pass the host as s3.af-south-1.amazonaws.com.

Thanks
Puneeth

Hi Puneeth,

I think that what you're looking for is the region parameter ( region: 'af-south-1' ).

You can use it as follows:

uploader = S3Uploader::Uploader.new({
         :s3_key => YOUR_KEY,
         :s3_secret => YOUR_SECRET_KEY,
         :destination_dir => 'test/',
         :region => 'af-south-1', # <--- SET REGION TO CHANGE HOST
         :threads => 10
})