- 東京リージョンの指定方法
東京リージョンはap-northeast-1となる。Tokyoじゃない。
ホームディレクトリの.s3cfgを以下のように編集する。
$ vi ~/.s3cfg
bucket_location = ap-northeast-1
host_base = s3-ap-northeast-1.amazonaws.com
host_bucket = %(bucket)s.s3-ap-northeast-1.amazonaws.com
simpledb_host = sdb.ap-northeast-1.amazonaws.com
s3cmd --configureでも良い。
$ s3cmd --configure
Access Key: ユーザー名
Secret Key: トークン
Default Region: ap-northeast-1
Encryption password:
Path to GPG program: None
Use HTTPS protocol: True
HTTP Proxy server name:
HTTP Proxy server port: 0
-
5GB以上のファイルをS3にアップロードする方法
$ s3cmd put --multipart-chunk-size-mb=5120 転送するファイル s3://バケット名