include region parameter in s3 config

The amazon s3 was returning 307 error, inform the region solved my problem.