Check region against static list, only if host is a subdomain of amazonaws

Following the proposal in #3106, here is the simple approach of simply disabling the check for non-aws subdomains.