fs = s3fs.S3FileSystem(client_kwargs={"region_name": region_name})
# tried also config_kwargs
...
botocore.exceptions.ClientError: 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.
s3.create_bucket(
Bucket=target_uri.bucket,
CreateBucketConfiguration={'LocationConstraint': REGION})
Error:
Solution:
More info [1]
[1] boto/boto3#781