def get_ecr_tf_resource_info(namespace, identifier):
    """
    Takes a namespace from app-interface and searches
    a given ECR by its identifier.
    """
    tf_resources = namespace['terraformResources']
    for tf_resource in tf_resources:
        if 'identifier' not in tf_resource:
            continue

        if tf_resource['identifier'] != identifier:
            continue

        if tf_resource['provider'] != 'ecr':
            continue

        return tf_resource