LoginSignup
0
0

More than 1 year has passed since last update.

S3 CLI コマンドメモ

Last updated at Posted at 2022-06-30

背景

業務で S3 のコマンド (ローカルは MinIO) を扱うようになったので、便利そうなコマンドをメモしておく。

コマンド一覧

  • $ aws configure --profile minio
    • プロファイルを設定する
  • $ aws configure list --profile minio
    • プロファイルの中身を確認する
  • $ aws --profile minio --endpoint-url http://127.0.0.1:19000/ s3 ls
    • バケット一覧を出力する
  • $ aws --profile minio --endpoint-url http://127.0.0.1:19000/ s3 ls s3://<bucket-name>
    • バケット内のディレクトリ一覧を出力する
  • $ aws --profile minio --endpoint-url http://127.0.0.1:19000/ s3 sync source s3://<bucket-name>/<directory-name>
    • source ディレクトリ内のファイルをまとめて <bucket-name> バケットに転送する。

参考記事

0
0
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
0
0