Yep, you hit the nail on the head: "To live in peace".
AA isn't the only way in my opinion, and I can't say I subscribe to every single item they sell, but it is a very good general blueprint I believe, with the goal being to be at peace with yourself and your world, ameliorating the triggers that cause relapse.
Don't lie, don't be secretive, don't be resentful, etc., etc., are all good general tenets to live by, IMO.
I have several friends and a family member who are still alive and kicking today due to 12 stepping, I believe.
Two decades ago I too decided to quit drinking and partying, and that family member took me to one of their AA meetings. After several meetings, it wasn't for me. But the Big Book was invaluable, and after reading it I saw the path I was on, and the dire consequences that awaited me. I attribute that book in making my decision to never mess with booze again. I incorporated some of those principles into my life, along with a reasonable dose of spirituality and coming back to my Catholic heritage, and still incorporate all that until today, the best that I can.
There aren't many people I hold in higher esteem and respect than sober recovering alkies & addicts; and they're aren't many people tougher, that's for sure! They're the ultimate example of internal fortitude and brutally honest reflection. It takes an extremely brave and self-honest person to publicly admit they're an addict; many cannot, and they suffer the brutal consequences.
Even though working a program wasn't for me, once a year I go to a 12 step meeting near my house on my anniversary date, and celebrate with them. No one else can understand, and I see no need to drag family or friends into what was my personal improvement plan. They always are happy to see me, I have a good time and am happy to see them. I'm reminded of the consequences of going back to the old life, and many of the good things I have in my current life, and I value and cherish their fellowship.