Skip to content

Instantly share code, notes, and snippets.

@tamamushi
Created September 8, 2015 01:03
Show Gist options
  • Select an option

  • Save tamamushi/7912041133adf760534f to your computer and use it in GitHub Desktop.

Select an option

Save tamamushi/7912041133adf760534f to your computer and use it in GitHub Desktop.
s3cmdの思い出

s3cmd Tips

  • 東京リージョンの指定方法

東京リージョンは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://バケット名

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment