Cages need to be secure and big. The basic diet should be a special pellet or commercial Amazon food formulated especially for Amazons. These commercial foods should be supplemented with any healthy food that you eat. They can have fruit, pasta, vegetables, nuts, seeds, cooked beans, hot peppers, and bell peppers. The parrot can eat anything healthy that you eat.
Fruit is their favorite treat.
They should be provided with a cuttlebone and a mineral block. Keeping an Amazon healthy is a complex issue. Toenails need to be trimmed. The wing feathers need to be trimmed so he doesn't escape. You could accidentally cut a blood feather and the bird can bleed out very quickly.