The cost of the assessment is not a deduction. It is an improvement that adds to your cost basis and is depreciated over 27.5 years, The same as if you made similar improvements to a freestanding house.
The interest on the loan is a deductible expense, but the principal payments are not.