I am trying to do
aws s3 ls s3://bucket-name --region ap-south-1
But it keeps giving me the following error
A client error (PermanentRedirect) occurred when calling the ListObjects operation: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
The same command runs perfectly fine for buckets in other regions, but not for buckets in Mumbai (ap-south-1) region
Help!!