Bad cough - what meds to take

Hi Mommas, I've had this persistent cough, Doc has recommended Amoxicilin to take for 5 days but I feel bad drugging my baby, has anyone taken antibiotics during their pregnancy? 
What would you recommend?