LoginSignup
23
16

More than 5 years have passed since last update.

AWS CLIのS3でワイルドカードを使う方法

Posted at

AWS CLIのS3ではワイルドカードが使えないと思っていましたが、実はオプションを駆使することで使えることがわかったのでメモ。


aws s3 cp --recursive \
  --exclude '*' \
  --include 'ワイルドカード入り検索文字列' \
  s3://bucket_name/path/ .

S3とかCloudFrontだとログファイルがディレクトリ掘らずに置かれてしまうのでこれでやると便利ですね。

23
16
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
23
16