Setting a custom endpoint_url
See original GitHub issueHow do I pass a custom endpoint url to s3fs.S3FileSystem
?
I’ve tried:
kwargs = {'endpoint_url':"https://s3.wasabisys.com",
'region_name':'us-east-1'}
self.client = s3fs.S3FileSystem(key=AWS_ACCESS_KEY_ID,
secret=AWS_SECRET_ACCESS_KEY,
use_ssl=True,
**kwargs)
However I get the error:
File "s3fs/core.py", line 215, in connect
**self.kwargs)
TypeError: __init__() got an unexpected keyword argument 'endpoint_url'
I’ve also tried passing kwargs as the parameter config_kwargs
and s3_additional_kwargs
with similar errors. The problem with these is that endpoint_url
gets passed to botocore.Config
when it shouldn’t.
I can verify boto3
is working with the following:
client = boto3.client("s3",
aws_access_key_id=AWS_ACCESS_KEY_ID,
aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
endpoint_url="https://s3.wasabisys.com",
use_ssl=True,
region_name="us-east-1",
api_version=None,verify=None, config=None)
fs-s3fs
also works
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Configure a Custom Endpoint for an Instance
Perform the following configuration tasks to successfully use a custom endpoint URL for your Oracle Integration instance:.
Read more >Specifying Custom Endpoints - AWS SDK for JavaScript
Make sure you specify the same Region in your code as the Region in the custom endpoint URI. A mismatch between the Region...
Read more >Setting a custom endpoint of an SNS client results in ... - GitHub
Setting a custom endpoint of an SNS client results in EndpointError: Endpoint URL must be a string, got object .
Read more >Configuring Client Endpoints | AWS SDK for Go V2
Configuring custom endpoints, lets you do more, such as working with pre-release versions of a service. A EndpointResolver can be configured to ...
Read more >Configuring endpoint URL information for HTTP bindings - IBM
Select Default HTTP URL prefix or Custom HTTP URL Prefix. If you select the default HTTP URL prefix, a list provides you with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Watch this space! Once https://github.com/pandas-dev/pandas/pull/34266 is in, we will be adding
storage_parameters=
to the various pandas IO functions, as is already available in the Dask versions.@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?