Starting in 2013, we developed a fully automated aerosol mass spectrometer for the IAGOS-CARIBIC container. The CARIBIC project (Civil Aircraft for the Regular Investigation of the atmosphere Based on an Instrument Container) which is part of IAGOS operates a set of instruments in a freight container that is flown four times a month onboard a commercial Lufthansa Airbus. IAGOS-CARIBIC is coordinated by A. Zahn (KIT). The instrument "CARIBIC-AMS" is based on the commercially available miniAMS by Aerodyne Research, Inc., but required several major updates and reconfiguration until it met the needs of the stand-alone, automated operation in the IAGOS-CARIBIC container. After a revision of the IAGOS-CARIBIC container in 2017, the CARIBIC-AMS started regular operation with its first successful flights in October 2018.