public static boolean isAwsRegistry(String registry) {
        return (registry != null) && AWS_REGISTRY.matcher(registry).matches();
    }
Is given the registry an ecr registry?

@param registry the registry name
@return true, if the registry matches the ecr pattern
src/main/java/io/fabric8/maven/docker/access/ecr/EcrExtendedAuth.java