How to render a 6 image Cubemap

Hello
Im wondering how i could render a Cubemap consisting of 6 images each with 1024 by 1024 for exsample?