Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when calling the ListObjects operation: Missing required header for this request: x-amz-content-sha256

I am trying to copy from one bucket to another bucket in aws with the below command

aws s3 cp s3://bucket1/media s3://bucket2/media --profile xyz --recursive

Returns an error saying

An error occurred (InvalidRequest) when calling the ListObjects operation: Missing required header for this request: x-amz-content-sha256
Completed 1 part(s) with ... file(s) remaining
like image 268
Jamsheer Kandoth Avatar asked Dec 21 '25 01:12

Jamsheer Kandoth


2 Answers

Check your region. This error is known to happen if your region is not set correctly.

like image 135
jzonthemtn Avatar answered Dec 23 '25 14:12

jzonthemtn


Thanks for your answers , The issue was with permission with the profile used , the credential must have access rights to both the S3 Buckets

like image 31
Jamsheer Kandoth Avatar answered Dec 23 '25 16:12

Jamsheer Kandoth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!