If you were a bridesmaid in a friend's wedding two years ago, but you are not close anymore, are you obligated to ask her to be in your wedding?
The short answer is no. There is no rule or etiquette that you have to ask someone to participate in your wedding because you've been in hers.
Though you might feel a little ackward at first, don't try to address or explain your decision. It will only make the situation more uncomfortable.
Chances are she won't hold it against you and will be at your wedding, ready to celebrate.