Skip to content
This repository was archived by the owner on Aug 27, 2023. It is now read-only.

How to use private s3 bucket in pypicloud ? #34

Open
nikhilagrawal577 opened this issue Sep 15, 2021 · 2 comments
Open

How to use private s3 bucket in pypicloud ? #34

nikhilagrawal577 opened this issue Sep 15, 2021 · 2 comments

Comments

@nikhilagrawal577
Copy link

Hello,

I wanted to use s3 bucket for storing my python libraries. I cross checked the document https://pypicloud.readthedocs.io/en/latest/topics/storage.html#storage-bucket. I configured the details.

As we have a private s3 bucket and URL is not the same. [http://s3.amazonaws.com/]
However how do we pass our host which takes s3 data ?

@stevearc
Copy link
Owner

What is going wrong? Pypicloud uses boto to generate signed URLs to the packages. You shouldn't have to manually deal with any URLs yourself. Have you configured the IAM policy for the user?

@ddelange
Copy link
Contributor

signed urls are generated with hardcoded amazonaws.com host.

there's a PR open, one of which side effects is

does not need to generate signed urls to perform a streamed response (rather re-uses the storage client) when stream_files is true

instead, it will re-use the boto client generated from the config you pass. so enabling stream_files will allow you to bypass the hardcoded host in the signed urls.

hope that helps!

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

No branches or pull requests

3 participants