AWS CLI is a common tool allowing to control S3 service. AWS CLI tool is written in python.
To install AWS CLI we recommend using official AWS docummentation. There you can find the guide on how to install AWS CLI on Linux and Windows as well.
In the following, we will demonstrate the AWS CLI configuration. Following exemplary commands utilize the --profile option.
aws configure --profile test_user AWS Access Key ID [None]: xxxxxxxxxxxxxxxxxxxxxx AWS Secret Access Key [None]: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Default region name [None]: us-east-1 Default output format [None]: text
AWS Access Key ID - access key, obtained from data storage administrator
Secret Access Key - secret key, obtained from data storage administrator
Default region name - Here isert “us-east-1”!
Default output format - choose the output format (json, text, table)
To show the help (available commands) you can use help. aws s3 tool allows you to use several advanced functions, see below.
aws s3 help
aws tool allows the usage of aws s3api module. This module provides advanced functions to control S3 service, see below. The configuration of credentials and connections is the same like for aws in the beginning of this guide
The set of available commands can be obtained by the following command with the option help. Alternatively is the complete list available in the AWS website.
After successful configuration, the configuration file should be created. You can find the example below. You can find the credentials file in the same path.
Windows: C:/Users/User/.aws/config Linux: /home/user/.aws/config [profile test-user] region = us-east-1 output = text