The distributed attitude synchronization control problem for spacecraft formation flying subject to limited energy and computational resources is addressed based on event-triggered mechanism. Firstly, a distributed event-driven controller is designed to achieve attitude coordination with the limitation of energy and computing resources. Under the proposed control strategy, the controller is only updated at the event triggering instants, which effectively reduces the update frequency. Subsequently, an event-triggered strategy is developed to further decrease energy consumption and the amount of computation. The proposed event-triggered function only requires the latest state information about its neighbors, implying that the trigger threshold does not need to be calculated continuously. It is shown that the triggering interval between two successive events is strictly positive, showing that the control system has no Zeno phenomenon. Moreover, the update frequency of the proposed controller can be reduced by more than 90% compared to the update frequency of the corresponding time-driven controller with an update frequency of 10 Hz by choosing appropriate control parameters and the control system can still achieve high-precision convergence. Finally, the effectiveness of the constructed control scheme is verified by numerical simulations.