AWS: handle other regions for #url

@staugaard

Unfortunately, it doesn't seem possible to grab the "@host" variable from #connection without resorting to instance_variable_get. So, I guess we can copy the logic since it seems to be pretty stable.