Amazon has confirmed one of its warehouses was hit by an outbreak of tuberculosis (TB).