aws-samples / aws-samples/s3pathlib-project

Set custom endpoint uri

Open
#12 6 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Python
Stars
31
Forks
6
PR merge metrics
No merged PRs in 30d

Description

I want to use custom endpoint URL to use s3pathlib with Minio.

From the documentation below, I can see it is easy to change many parameters, but not the endpoint_url which is defined inside the client. And in resolve_s3_client, context.s3_client returns a new client so it is not possible to change its endpoint.

```
from s3pathlib import context
context.attach_boto_session(
boto3.session.Session(
region_name="us-east-1",
profile_name="my_aws_profile",
)
)
```

I would like to change the endpoint so I can use a self hosted minio instead of default AWS endpoint.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.