1

I am trying to run this command aws s3 sync images/ s3://mybucket/myfolder I get an error

A client error (InvalidRequest) occurred when calling the ListObjects operation: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256

How to fix it?

Thank you.

Sumith S Nair
  • 151
  • 1
  • 11

1 Answers1

0

This is happening because your region must be supporting the new AWS4-HMAC-SHA256 and your AWS CLI version must be old. Upgrade your AWS CLI version and that error will go.

Piyush Patil
  • 14,512
  • 6
  • 35
  • 54