As played, you played way too passively postflop and you should be maximizing your value with those aces. On a board texture like that, you stand to be good the majority of the time especially when you look at a standard CO 3bet calling range.
That being said, I'd call the raise on the turn, but the all-in on the river is a tough spot. I'd think most micro players are betting all their jacks here in position on the flop, which essentially polarizes his turn raising range between sets and air. When he goes all in on the river, it just seems really value-heavy and despite it being somewhat of a hero fold, I think you can just sadly let it go.