-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi! i want to use another S3 provider than AWS. But it is not possible to set S3_ENDPOINT by env variables.
I'm not expert in Java but i made some research, it seems to be possible by doing something like this:
String endpoint = System.getenv("AWS_S3_ENDPOINT");
URI endpointUri = endpoint != null ? URI.create(endpoint) : null;
S3Client.Builder builder = S3Client.builder()
.region(Region.US_EAST_1)
.credentialsProvider(DefaultCredentialsProvider.create());
if (endpointUri != null) {
builder.endpointOverride(endpointUri);
}
S3Client s3 = builder.build();
Could you implement it?
Metadata
Metadata
Assignees
Labels
No labels