How do I make infinite Space Terrain?

Make modular terrain pieces.Instantiate next modular piece at the end of last modular piece at runtime.