How To Use s3cmd for S3 API Access

S3cmd is a free command line tool and client for uploading, retrieving, and managing data in Amazon S3 and other cloud storage service providers that use the S3 protocol.

You will need EC2 credentials for this guide. You can learn how to create them here.

It is recommended to activate a virtual environment with source .venv/bin/activate

First, install the AWS client with pip install s3cmd

You will also have to install gpg with pip install gnupg

Now you can use

s3cmd —configure

to configure s3cmd. You must only enter the Access Key, Secret Key, S3 Endpoint, and Use HTTPS protocol. You can now test that you can connect with s3cmd ls

S3 Region Endpoint List

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us