AWS S3 Java Client Example

This article includes steps to run AWS S3 Java Client.

Set up credentials

As, there are 4 ways for configuring credentials, we will introduce create a credentials file under ‘ ~/.aws/’.

  • Create Access Key

Login, Click ‘Access Keys(…)’, Click ‘Generate New Access Key’ button, these will generate a aws_access_key_id and aws_secret_access_key.

  • Put it to credentials file

Create a credentials file under ‘ ~/.aws/’


Run S3Client