s3fs icon indicating copy to clipboard operation
s3fs copied to clipboard

Feature request: set default endpoint

Open longern opened this issue 6 years ago • 3 comments

Now I can change the endpoint by appending ?endpoint_url= to the filesystem URL. Is it possible to set the default endpoint in a settings file or programmatically to prevent manually modifying fs URL every time?

longern avatar Aug 05 '19 09:08 longern

There doesn't seem to be any blessed way of doing this from Boto, but the opener could use an env var. Would that work for your use case?

willmcgugan avatar Aug 14 '19 10:08 willmcgugan

There doesn't seem to be any blessed way of doing this from Boto, but the opener could use an env var. Would that work for your use case?

That works. It's needed for private s3 service.

longern avatar Aug 17 '19 08:08 longern

My solution is:

            endpoint_url=parse_result.params.get(
                "endpoint_url", os.getenv("AWS_ENDPOINT_URL", None)
            ),

in opener.py, line 51

longern avatar Aug 31 '19 01:08 longern