LoginSignup
2
2

More than 5 years have passed since last update.

Amazon S3のオブジェクトをMacのコンソールから削除した時のメモ

Last updated at Posted at 2014-03-26

Amazon S3でオブジェクトを削除するときに、いちいちWebコンソールやアプリケーション経由の操作では大変なので、コマンドラインでサクッと対応した時のメモ

s3cmdのインストール

brew install s3cmd

S3の設定

$ s3cmd --configure
Access Key: *********
Secret Key: *********
Encryption password:
Path to GPG program[None]: None
Use HTTPS protocol[No]: True
HTTP Proxy server name:
HTTP Proxy server port: 0

設定ファイル~/.s3cfgが出来上がる。

ついでにリージョンも東京に変更

$ vi ~/.s3cfg
bucket_location = ap-northeast-1

削除

$ s3cmd del s3://[bucket名]/[対象オブジェクト名]

参考

Mac OS Xでs3cmdを使って、Amazon S3、さくらのBASE Storageのファイルを操作する
http://qiita.com/isaoshimizu/items/657595cbf05d2b3bec81

s3cmd - Eucalyptus
http://oss.infoscience.co.jp/eucalyptus/wiki/s3cmd/

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2