The Alpha Magnetic Spectrometer (AMS-02) has been operating aboard the International Space Station (ISS) since May 2011. Lithium and Beryllium are expected to be mainly produced by the fragmentation of primary cosmic rays (CR) during their propagation. Therefore, their measurement is essential in the understanding of cosmic ray propagation and sources. Their isotopic composition can provide crucial complementary information. In particular, the 10Be/9Be ratio can be used as a radioactive clock providing the measurement of CR residence time in the Galaxy. In this contribution, the measurement of the lithium isotopes 6Li and 7Li fluxes and ratios and 7Be, 8Be, and 10Be fluxes and ratios based on data collected by AMS during the first 8.5 years of operation are presented.