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
feita há 7 meses1212 visualizações
1 Resposta
1
Resposta aceita

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
respondido há 7 meses
profile picture
ESPECIALISTA
avaliado há 7 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas