Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to pass the host name #16

Open
puneeth-k opened this issue Jan 12, 2021 · 1 comment
Open

Option to pass the host name #16

puneeth-k opened this issue Jan 12, 2021 · 1 comment

Comments

@puneeth-k
Copy link

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

@chrishein
Copy link
Owner

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
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants