The emergence of edge computing alleviates the network congestion, delay, and packet loss of cloud computing enabled smart grid architecture in big data scenarios, greatly improving the operation efficiency and communication quality of the smart grid. However, edge computing architecture also brings great security risks to the smart grid. This paper proposes a Polymorphic Heterogeneous Security Architecture (PHSA) for edge enabled smart grid, to assure the key services in the smart grid. Based on the dynamic heterogeneous redundancy architecture, the proposed architecture introduces intelligent scheduling of executors, intelligent arbitration of multi-state service response, cleaning and reconstruction of executors, and attack surface management. We establish a closed-loop core control process of decision and processing, adjustment and scheduling, cleaning reconstruction, migration, and recovery. Furthermore, a dynamic scheduling algorithm based on executor credit and heterogeneity is proposed. The simulation results show that, compared with the traditional smart grid security architecture, the PHSA has better defense ability and system reliability, significantly improving the security of edge enabled smart grid system. Besides, compared with the random scheduling strategy, the proposed dynamic executor scheduling algorithm can further improve the security of the system.