-
Notifications
You must be signed in to change notification settings - Fork 67
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
S3: Add possibility to configure the endpoint, accessKey, accessSecret, pathStyleAccessEnabled #645
Comments
Hi @thijslemmens, Are you connecting to minio? I was looking at this example. For your use case do you know if you have to set region and signer override in addition to these attributes? Thanks |
Hello @paulcwarren No, we are not using Minio. We use a proprietary object storage solution (Datacore SWARM). Currently we use this code to create the client:
That works, so I think the list of attributes is big enough for this use case. It makes sense to have a check that minio could work as well. kind regards |
OK. That's helpful and almost exactly what I have actually. So, I'll try not expose a region property then as it seems you don't need it. This code makes existing tests fail in CI. I presume because moving to the AmazonS3ClientBuilder doesn't automatically set a region. Whereas instantiating AmzonS3Client directly does. But that is my problem to figure out. Thanks for the info. |
Describe the solution you'd like
It is already possible to configure the bucket to use
spring.content.s3.bucket
. I'd like to have the option to add:These options can be picked up by the
spring-content-s3-boot-starter
to instantiate the AmazonS3 client without the need for application specific code.Additional context
I'm using an S3 compatible storage provider that requires setting the endpoint and enable pathStyleAccess.
The text was updated successfully, but these errors were encountered: