In OP you said A-A. In follow up you said A-K.
In the case of A-K, I would raise for sure, but try to avoid going all-in pre-flop with it. However, if forced into it, I don't know that I would lay it down. It would depend a lot on the table I was at and the player who shoved. Two hands at a table gives you very little info about your opponents. I can't say what I would do until I was in that spot. I might think fold, fold, fold, and then be surprised to see myself call, or vice versa.
In the case of A-A, anyone who criticizes you for making that call, should be required to take a mandatory remedial poker class. A-A is the one hand that I think you should get all your chips in with before the flop. I wouldn't open shove and risk chasing everyone out of the hand. You should be raising with it, though. If it's raised in front of you, you should 3-bet. If 3-bet you should 4-bet and so on until you feel sure your man won't fold, or there are enough chips in the pot to satisfy you. Then you shove. If it's shoved in front of you, CALL!
Nice hand. Good luck.