Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nguyenkhanhquy/amazon-s3-spring-boot
Upload File to S3 with AWS Java SDK - Java Spring Boot Web App
https://github.com/nguyenkhanhquy/amazon-s3-spring-boot
aws-s3 java spring-boot
Last synced: about 11 hours ago
JSON representation
Upload File to S3 with AWS Java SDK - Java Spring Boot Web App
- Host: GitHub
- URL: https://github.com/nguyenkhanhquy/amazon-s3-spring-boot
- Owner: nguyenkhanhquy
- Created: 2024-04-25T16:11:49.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-19T16:08:52.000Z (3 months ago)
- Last Synced: 2024-08-19T19:00:20.477Z (3 months ago)
- Topics: aws-s3, java, spring-boot
- Language: Java
- Homepage:
- Size: 70.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Amazon S3 - Spring Boot
Upload File to S3 with AWS Java SDK - Java Spring Boot Web App## Prerequisites
- Java Development Kit (JDK) 21 or later
- Maven: 3.9.9
- Spring Boot: 3.3.3
- Ensure you have a `.env` file in the root directory of your project. This file should contain all necessary environment variables for configuring AWS services.## Setting Up Environment Variables
Create or edit the `.env` file in the root directory of your project with the following content:
```plaintext
# AWS Configuration
AWS_REGION=your-aws-region
AWS_BUCKET=your-s3-bucket-name
AWS_ACCESS_KEY_ID=your-aws-access-key-id
AWS_SECRET_ACCESS_KEY=your-aws-secret-access-key
AWS_URL_FOLDER=your-s3-url-folder