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
gefragt vor 7 Monaten1180 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
beantwortet vor 7 Monaten
profile picture
EXPERTE
überprüft vor 7 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen