The country has been used as a filming location a few times on the movies:
Licence to Kill (Churubusco Studios in Mexico City, Mexico City, Acapulco, Otomi Ceremonial Center in Toluca, Cancún, Penninsula de Yucatán, Durango, Isla Mujeres)
Tomorrow Never Dies (Fox Baja studios)
Quantum of Solace (Aerial chase, Baja California)
Spectre (Mexico City)
While the films Goldfinger and Diamonds Are Forever were not shot on location in Mexico, the pre-title sequence of Goldfinger is supposed to be set on Mexico while Blofeld's W.W. Petroleum oil platform in Diamonds Are Forever is in Mexican territorial waters (Baja California).