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

Simplify creating anonymous S3Store #88

Open
kylebarron opened this issue Nov 13, 2024 · 2 comments
Open

Simplify creating anonymous S3Store #88

kylebarron opened this issue Nov 13, 2024 · 2 comments

Comments

@kylebarron
Copy link
Member

No description provided.

@scottyhq
Copy link

Is there a way to do this currently? I was trying to access some public datasets on AWS (https://registry.opendata.aws/umbra-open-data/). Just interested in listing and reading (e.g. aws s3 ls --no-sign-request s3://umbra-open-data-catalog/)

from boto3 import Session 
from obstore.store import S3Store
session = Session() # requires credentials
public_bucket = S3Store.from_session(session, "umbra-open-data-catalog", config={"AWS_REGION": "us-west-2"})
list(obstore.list(public_bucket)) # InvalidAccessKeyId

@kylebarron
Copy link
Member Author

You can set 'AWS_SKIP_SIGNATURE': True in the config: https://developmentseed.org/obstore/latest/api/store/aws/#obstore.store.S3ConfigKey

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