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달 전1179회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠