Peru has restricted entry to most foreign travelers, except nationals and residents of Peru, and repatriation and humanitarian flights.
Travelers must complete a Declaracion Jurada de Salud 72 hours before departure and present the completed form upon arrival.
Repatriation flights and children under age 12 with a medical certificate of good health are exempt from presenting a COVID-19 PCR-RT test result.
Children under the age of 2 are exempt from presenting a COVID-19 test.
Travelers with proof of recovery from the virus within the last 90 days prior to boarding. Proof of a recent positive viral test and a letter from your healthcare provider or a public health official stating that you were cleared to travel.
More info at the CDC site
Travelers who did not get tested, are advised to stay home and self-quarantine for 10 days after travel.