-
Notifications
You must be signed in to change notification settings - Fork 282
Setting a custom endpoint_url #120
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
Comments
Duplicate of #119 It's |
Thanks for the quick reply! That needs to get added to the documentation |
@npezolano , since you've just looked through the documentation, you may be the best placed to consider where this information should appear. Would you be willing to provide a PR? |
My $0.02 after finding this solution after extensive googling, somewhere where new users will find it 'earlier'. We are using a self hosted minio setup. Almost all online documentation starts with the assumption that everyone is using Amazon's S3 cloud. I spent multiple hours trying to figure out just the search terms that I needed to find A note about using s3fs with a self hosted or non-AWS server in an example would probably have gone a long way in helping. |
This would naturally find a place in the S3FileSystem docstring and the RST documentation (docs/source/ directory). Would you be willing to add extra information in a PR? I have personally never used s3fs with anything other than AWS, and I suppose it shows. We have had it used by others with other s3-compatible services. |
Is my understanding correct, that it is currently not possible/supported to use a non Amazon S3 endpoint like this: df.to_csv("s3://my_big_bucket/testdata.csv") instead of: fs = s3fs.S3FileSystem(
anon=False,
key=os.environ.get("aws_access_key_id", None),
secret=os.environ.get("aws_secret_access_key", None),
client_kwargs=dict(
endpoint_url=os.environ.get("aws_endpoint_url", None)
)
)
with fs.open("my_big_bucket/testfile.csv", "w") as file:
df.to_csv(file) ? |
Watch this space! Once pandas-dev/pandas#34266 is in, we will be adding |
How do I pass a custom endpoint url to
s3fs.S3FileSystem
?I've tried:
However I get the error:
I've also tried passing kwargs as the parameter
config_kwargs
ands3_additional_kwargs
with similar errors. The problem with these is thatendpoint_url
gets passed tobotocore.Config
when it shouldn't.I can verify
boto3
is working with the following:fs-s3fs
also worksThe text was updated successfully, but these errors were encountered: