As the progress of electrification for the public transportation sector is accelerated, it becomes more and more important to integrated planning charging infrastructure for public transportation, while emerging technologies such as distributed renewable generation and energy storage system should be accounted. Here, an integrated resource planning framework is proposed where both planning investment cost and operational cost are considered. An aggregation strategy is also proposed to optimise the charging decisions for electric bus on different routes, which could effectively improve the planning and operation efficiency. To address the uncertainties involved in this process, a scenario-based chance-constrained programming approach is adopted. A numerical case study is also included to demonstrate the effectiveness of this proposed resource planning model.