Skip to content

Instantly share code, notes, and snippets.

@eduardofcgo
Created April 9, 2024 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduardofcgo/bcf2d89be3eea8b9ac3c6398f1d4a80c to your computer and use it in GitHub Desktop.
Save eduardofcgo/bcf2d89be3eea8b9ac3c6398f1d4a80c to your computer and use it in GitHub Desktop.
aws s3 sdk v2 for s3 compatibles providers
(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