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

Closed
kylebarron opened this issue Nov 13, 2024 · 3 comments · Fixed by #143
Closed

Simplify creating anonymous S3Store #88

kylebarron opened this issue Nov 13, 2024 · 3 comments · Fixed by #143

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

@kylebarron
Copy link
Member Author

kylebarron commented Jan 15, 2025

For anyone following this thread, I'm going to remove the literal anon classmethod for now (i.e. revert #143), and just document how to pass skip_signature=True to create an anonymous store.

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

Successfully merging a pull request may close this issue.

2 participants