sudo apt-get install s3cmd
for cn-north-1
sudo apt-get remove s3cmd
sudo apt-get install python-setuptools python-dateutil
cd /tmp && wget http://sourceforge.net/projects/s3tools/files/s3cmd/1.6.0/s3cmd-1.6.0.tar.gz
tar xvfz s3cmd-1.6.0.tar.gz
cd s3cmd-1.6.0
sudo python setup.py install
sudo ln -s /usr/local/bin/s3cmd /usr/bin/s3cmd
s3cmd --configure
vim /home/ubuntu/.s3cfg
bucket_location = cn-north-1
host_base = s3.cn-north-1.amazonaws.com.cn
host_bucket = %(bucket)s.s3.cn-north-1.amazonaws.com.cn
website_endpoint = http://%(bucket)s.s3-website-%(location)s.amazonaws.com.cn/
s3cmd ls
- https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions#7-problem-s3cmd-not-working-with-a-bucket-in-the-cn-north-1-region