This is a simple Spring Boot restful API for upload and delete files to AWS S3 bucket
Upload (POST) API : http://localhost:8080/v1/storage/uploadFile
Delete (Delete) API : http://localhost:8080/v1/storage/deleteFile
- Java 8 with JCE unlimited security Jar
- Maven
Add Dependency
com.amazonaws aws-java-sdk 1.11.163- Create AWS account
- Create User from IAM and assign policy AWSS3fullaccess programatically ( So this user will get the all S3 bucket access through CLI or progam not console )
- download the access key and Access ID
- Change the access key and access ID in application.yml file
- Create Bucket from S3 service with default configuration
- provide the bucket name and endpoint url of this bucket in the application.yml file