A search for top quark pair resonances in final states containing at least one electron or muon has been performed with the ATLAS experiment at the CERN Large Hadron Collider. The search uses a data sample corresponding to an integrated luminosity of 2.05 fb(-1), which was recorded in 2011 at a proton-proton centre-of-mass energy of 7 TeV. No evidence for a resonance is found and limits are set on the production cross-section times branching ratio to t (t) over bar for narrow and wide resonances. For narrow Z' bosons, the observed 95 % Bayesian credibility level limits range from 9.3 pb to 0.95 pb for masses in the range of m(Z') = 500 GeV to m(Z') = 1300 GeV. The corresponding excluded mass region for a leptophobic topcolour Z' boson (Kaluza-Klein gluon excitation in the Randall-Sundrum model) is m(Z') < 880 GeV (m(gKK) < 1130 GeV).