https://github.com/levigo/s3-java-example
This repository demonstrates how to create a s3 client for java that generates and fetches presigned urls
https://github.com/levigo/s3-java-example
Last synced: over 1 year ago
JSON representation
This repository demonstrates how to create a s3 client for java that generates and fetches presigned urls
- Host: GitHub
- URL: https://github.com/levigo/s3-java-example
- Owner: levigo
- License: apache-2.0
- Created: 2022-05-06T10:01:14.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-07T15:20:31.000Z (over 1 year ago)
- Last Synced: 2025-03-04T13:46:13.427Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# S3 java client demo repository (with pre-signed url showcase)
This project serves as an example of how to create a s3 client in java for custom instances (not provided by aws) in
order to:
- upload a file to s3 and receiving a presigned url that allows to access the file for a certain duration
- retrieving a file via a presigned url from the s3 service
- deleting a file via a presigned url from the s3 service
# Tests
To be able to run the tests provide an `application-test.yml` file in the `src/test/resources` folder with the following
content:
```
publisher:
s3:
bucket:
endpoint:
access-key:
secret-key:
protocol:
```
And after that remove the `@Disabled` annotation.
The build process of this repository creates a jar and a jar-with-dependencies that includes all the dependencies for
this project into on fat jar.