A country will require an official international vaccination certificate. Some Central and South American countries give free or low cost vaccinations, but require a fee if you want a certificate. An individual border official might accept a clinic note that you got the shot, but I doubt it.
Do get the shot for Brazil. There is currently an outbreak in the Sao Paulo area. Health authorities have acted quickly to get it under control, but Brazil has a habit of being very vigilant about inspecting certificates during an outbreak.
There is currently a worldwide shortage of YF vaccine. You may have to call around to find a clinic that has it. Sometimes, only specific government clinics will issue certificates.
