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

Enable unsigned request when listing S3 bucket #30

Open
ErinWeisbart opened this issue Dec 2, 2022 · 1 comment
Open

Enable unsigned request when listing S3 bucket #30

ErinWeisbart opened this issue Dec 2, 2022 · 1 comment

Comments

@ErinWeisbart
Copy link
Member

Would like for pe2loaddata to be able to make csvs from datasets in cellpainting-gallery.
To list data in the cellpainting-gallery you need to be able to make an unsigned request. Using the CLI it's a --no-sign-request flag. Using boto3 it's less clean, but I've gotten started on it in f9566e0

@ErinWeisbart
Copy link
Member Author

Instead of putting the no-sign in the client session it looks like it also works to do it this way in the listing itself:

s3 = boto3.client('s3')
plate_list = s3.list_objects(
    Bucket=bucket, Prefix=prefix, Delimiter='/', RequestPayer='no-sign-request')

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

No branches or pull requests

1 participant