add support for choose different aws region endpoint.