Small pimples in my left eyelid?

Warm compress. It's probably stys, a moderately inflamed "sweat ducts" in the eyelid. I tell my patients to get a damp wash cloth and pop it in the microwave for 30 seconds. Test it on your wrist to make sure it's not too hot. Place warm compress the closed eyelid for about5-10 minutes and re-heating as necessary. If it does not get better in a week or gets worse go to your eye doctor.