import re


def is_valid_ecr_repo(repo_name: str) -> bool:
    """Returns true if repo_name is a ECR repository, it expectes
    a domain part (*.amazonaws.com) and a repository part (/images/container-x/...)."""
    rex = re.compile(
        r"^[0-9]{10,}\.dkr\.ecr\.[a-z]{2}\-[a-z]+\-[0-9]+\.amazonaws\.com/.+"
    )
    return rex.match(repo_name) is not None