def get_tag_by_key(instance, key):
    """Returns the value of the given EC2 Instance Tag or None"""
    for tag in instance['Tags']:
        if key == tag['Key']:
            return tag['Value']
    return None
