def _get_container_ids(existing_logs: list) ->list:
    """
    Extract container-id from existing logs and store them inside a list.
    """
    container_instance_ids = []
    for existing_log in existing_logs:
        for existing_log_stream in existing_log['log_streams']:
            log_stream_name = existing_log_stream['logStreamName']
            container_id = log_stream_name.split('/')[-1]
            container_instance_ids.append(container_id)
    return container_instance_ids
