The democratic FRG embedded itself in key Western economic and security organizations , the EC , which became the EU , and NATO , while the Communist GDR was on the front line of the Soviet-led Warsaw Pact .