An open API service indexing awesome lists of open source software.

https://github.com/viveknaskar/java-aws-s3

Java Project for Uploading Files to AWS S3 Using SDK v2
https://github.com/viveknaskar/java-aws-s3

aws aws-s3 java s3-bucket

Last synced: about 2 months ago
JSON representation

Java Project for Uploading Files to AWS S3 Using SDK v2

Awesome Lists containing this project

README

          

# AWS S3 Java Demo
This project demonstrates how to interact with Amazon S3 using the AWS SDK for Java (v2). It includes functionalities for:
- Listing all available S3 buckets
- Uploading a file to a specified S3 bucket

## Prerequisites
Before running this application, ensure that:
- **Java 17** installed
- **Maven** installed
- An **AWS account** with necessary IAM permissions

#### AWS credentials set up via environment variables:

```sh
export AWS_ACCESS_KEY_ID=your-access-key
export AWS_SECRET_ACCESS_KEY=your-secret-key
```

## Configuration
Modify `application.properties` for custom configurations (if needed):
```properties
aws.region=us-east-2
aws.s3.bucket-name=your-bucket-name
```

## License
This project is licensed under the MIT License.