How to download a folder from S3

0

I am trying to download a folder from the s3 storage using the cli, but i am having this error: fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden after configuring the aws cli.

Abbas
已提问 7 个月前1204 查看次数
1 回答
1
已接受的回答

aws s3 sync command should work. Note that your caller identity requires s3:GetObject permission.

$ aws s3 ls s3://test-bucket/testfolder/
2023-10-16 20:30:19          0 
2023-10-16 20:30:29      13359 template.yml
$ aws s3 sync s3://test-bucket/testfolder testfolder
download: s3://test-bucket/testfolder/template.yml to testfolder/template.yml
$ ls testfolder/
template.yml
profile picture
HS
已回答 7 个月前
profile picture
专家
已审核 7 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容