Skip to content

Instantly share code, notes, and snippets.

@koheyamada
Last active April 19, 2016 03:57
Show Gist options
  • Save koheyamada/86901a9fc1b952a4622827220f067d61 to your computer and use it in GitHub Desktop.
Save koheyamada/86901a9fc1b952a4622827220f067d61 to your computer and use it in GitHub Desktop.
s3cmdをインストールしてIDCFクラウドのオブジェクトストレージにバケットを作成する。 ref: http://qiita.com/kooohei/items/e1b35793675d52edfec0
$ s3cmd --configure
Enter new values or accept defaults in brackets with Enter.
Refer to user manual for detailed description of all options.
Access key and Secret key are your identifiers for Amazon S3
Access Key: ********************
Secret Key: ****************************************
Encryption password is used to protect your files from reading
by unauthorized persons while in transfer to S3
Encryption password:
Path to GPG program [/usr/bin/gpg]:
When using secure HTTPS protocol all communication with Amazon S3
servers is protected from 3rd party eavesdropping. This method is
slower than plain HTTP and can't be used if you're behind a proxy
Use HTTPS protocol [No]:
On some networks all internet access must go through a HTTP proxy.
Try setting it here if you can't conect to S3 directly
HTTP Proxy server name:
New settings:
Access Key: ********************
Secret Key: ****************************************
Encryption password:
Path to GPG program: /usr/bin/gpg
Use HTTPS protocol: False
HTTP Proxy server name:
HTTP Proxy server port: 0
Test access with supplied credentials? [Y/n] n
Save settings? [y/N] y
Configuration saved to '/hogehoge/.s3cfg'
[変更前]
host_base = s3.amazonaws.com
host_bucket = %(bucket)s.s3.amazonaws.com
[変更後]
host_base = ds.jp-east.idcfcloud.com
host_bucket = %(bucket)s.ds.jp-east.idcfcloud.com
$ apt-get install s3cmd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
s3cmd
0 upgraded, 1 newly installed, 0 to remove and 202 not upgraded.
Need to get 67.6 kB of archives.
After this operation, 295 kB of additional disk space will be used.
Get:1 http://jp.archive.ubuntu.com/ubuntu/ trusty/universe s3cmd all 1.1.0~beta3-2 [67.6 kB]
Fetched 67.6 kB in 0s (1,018 kB/s)
Selecting previously unselected package s3cmd.
(Reading database ... 91433 files and directories currently installed.)
Preparing to unpack .../s3cmd_1.1.0~beta3-2_all.deb ...
Unpacking s3cmd (1.1.0~beta3-2) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up s3cmd (1.1.0~beta3-2) ...
$ sudo brew install s3cmd
==> Downloading https://homebrew.bintray.com/bottles/s3cmd-1.6.0.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring s3cmd-1.6.0.el_capitan.bottle.tar.gz
🍺 /usr/local/Cellar/s3cmd/1.6.0: 55 files, 738.3K
host_bucket = %(bucket)s.ds.jp-east.idcfcloud.local
$ s3cmd mb s3://proudit-test
Bucket 's3://proudit-test/' created
$ s3cmd rb s3://proudit-test
Bucket 's3://proudit-test/' removed
$ s3cmd ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment