Linux and Windows Configuration
If you already have python installed on your machine, s3cmd is a python library available through the pip utility.
To install s3cmd, run the following command:
s3cmd is compatible with both python2 and python3. It is however recommended to use python2.
To configure s3cmd, run the following command:
- Specify your access key, secret key and Region. For more information, see Regions, Endpoints and Availability Zones Reference.
In the home directory, edit the .s3cfg and modify the following lines (this example is for the eu-west-2 Region):
If you want to manage multiple OSU accounts, you need to duplicate and modify the .s3cfg file.
Creating a bucket:
Listing the buckets:
Uploading an object the bucket:
You can setup rights as "public" when adding an object to your bucket, by adding the following parameter:
Copying an object:
Listing the content of a bucket:
Downloading an object from a bucket:
Deleting an object:
Signing an S3 URL to provide limited public access with expiry:
Allowing an object for one week:
Deleting a bucket: