Last active
May 14, 2024 04:29
-
-
Save eduardofcgo/bcf2d89be3eea8b9ac3c6398f1d4a80c to your computer and use it in GitHub Desktop.
aws s3 sdk v2 for s3 compatible providers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defn create-client [] | |
| (-> (S3Client/builder) | |
| (.credentialsProvider | |
| (StaticCredentialsProvider/create | |
| (AwsBasicCredentials/create access-key secret-key))) | |
| (.region (Region/of region)) | |
| (.endpointOverride (URI/create endpoint)) | |
| (.build))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment