package aws import ( "strings" ) // IsRegionNotExist tries to determine if the error is caused by a region not // existing, as would be the case in a user typo. func IsRegionNotExist(err error) bool { return strings.Contains(err.Error(), "no such host") }