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

Feature request: set default endpoint #56

Open
longern opened this issue Aug 5, 2019 · 3 comments
Open

Feature request: set default endpoint #56

longern opened this issue Aug 5, 2019 · 3 comments

Comments

@longern
Copy link

longern commented Aug 5, 2019

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?

@willmcgugan
Copy link
Member

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?

@longern
Copy link
Author

longern commented Aug 17, 2019

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
Copy link
Author

longern commented Aug 31, 2019

My solution is:

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

in opener.py, line 51

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