Astronomers and engineers are usually employed by NASA, but fewer physicists. You would need a Ph.D. in astrophysics, along with several peer-reviewed publications in top journals, and strong letters of recommendation, if you want to work on the research side of astrophysics.