Fully self contained java 8 program that can access an AWS S3 bucket.

Job ID: 38329984

Budget: $30 – $250 AUD

I need a fully self contained Java 8 sample program that can access an AWS S3 bucket.

This will give me a good head start for some work I need to do.

Requirements
- Java 8
- AWS Java SDK V2 (latest - 2.26.19?)
- all jars explicitly included/linked
- all KEYS etc can be hard coded
- no "magic" - ie no Spring, Maven etc
- no other assumptions
- self contained
- I can set my values and it will work.
String ACCESS_KEY = "MY_ACCESS_KEY";
String SECRET_KEY = "MY_SECRET_KEY";
String BUCKET_NAME = "my-bucket-name";
Region REGION = Region.US_EAST_1;

There will be one bucket.

The only contents is a list of small (max 3 kb) text files

It needs to
- list objects in the bucket (maximum is 20)
- download an object (one small text file)
- delete an object (one small text file)
- upload an object

I tried to use ChatGPT, but even after corrections it will not compile :-( It seems to be very confused regarding the SDK versions and required jars. I asked it to specify links to the jars but it's links generally gave 404 errors. I have attached the ChatGPT suggestion for your interest.

Thx :-)