How to download files from s3 service to local folder

前端 未结 3 2150
南方客
南方客 2021-02-20 16:02

I have requirement to download files from simple storage service to local folder and count the no.of files in local folder and check against simple storage service then send mai

3条回答
  •  自闭症患者
    2021-02-20 16:28

    Since this question is one of the top Google results for "powershell download s3 files" I'm going to answer the question in the title (even though the actual question text is different):

    Read-S3Object -BucketName "my-s3-bucket" -KeyPrefix "path/to/directory" -Folder .
    

    You might need to call Set-AWSCredentials if it's not a public bucket.

提交回复
热议问题