#先安裝 s3cmd (Linux or MAC)

sudo yum install s3cmd -y

#設定權限(S3需有key)

s3cmd –configure
Access Key: (填公開key)
Secret Key: (填私密key)

Default Region [US]:(填預設region)

#接下來都按Y或空白跳過
#儲存選Y

#查詢bucket

s3cmd ls

#查詢bucket endpoint

s3cmd info s3://your-bucket-name

完成

參考資料
http://vincent10e.logdown.com/posts/262683-use-paperclip-implements-image-files-uploaded-to-the-aws-s3