Fix that specifies the correct url endpoints based on regions.

We were having issues while creating a bucket in AWS for all regions except for "us-east-1".
The fix was tested in dev and it specifies the correct url endpoints for all regions.