0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

powershellでAWS S3から指定したフォルダ下のファイルを一括でダウンロードする

Last updated at Posted at 2020-07-02

事前にこちらからAWS Tools For Powershellをダウンロード、インストールする必要がある。

$Bucket = 'バケット名'
$Prefix = '/' # / で全てのファイルをダウンロード、 '/workspace'など任意のフォルダを指定可能
$LocalFolder = 'C:/workspace/' # ダウンロード先
$AccessKey = 'アクセスキー'
$SecretKey = 'シークレットキー'
$Region = 'ap-northeast-1'
Read-S3Object -Bucket "$Bucket" -Prefix "$Prefix" -Folder "$LocalFolder" -AccessKey "$AccessKey" -SecretKey "$SecretKey" -Region "$Region"
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?