- Clone this repository:
git clone https://github.com/hendisantika/SpringBootS3Bucket.git
- Go inside the folder:
cd SpringBootS3Bucket
- Change AWS Access Key & Secret Key in application.yml
- Run the application:
mvn clean spring-boot:run
- Add policy statement:
{
"Id": "Policy1611359479753",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1611359470980",
"Action": [
"s3:DeleteObject",
"s3:GetObject",
"s3:PutObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::springboot-s3-demo1/*",
"Principal": "*"
}
]
}
Upload File
Delete File
AWS S3 Files