I am trying to create a S3 bucket and am getting the following error:
aws s3api create-bucket --bucket niteshdemo --region ap-south-1
An error occurred (IllegalLocationConstraintException) when calling the CreateBucket operation: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.