Howdy!
Considering that I've been told that "Compost draws rats and bugs" by several people in several states (and very different climates), I'm guessing that the person who told you that doesn't understand what a well managed compost pile can do and does not do.
Unless you're in an HOA situation, or there's some other reason why you can't do basic and traditional gardening, including setting up a compost pile, I would suggest giving the "advice" you were given the same value as what you paid for it.
There are different circumstances in your new home, than you probably had in the different climate, but a quick contact with any local garden supply center, garden club, or state sponsored/funded extension agent will be able to help you through that.
https://bernalilloextension.nmsu.edu/mastercomposter/
Good luck!