It actually depends on which Creation Mythos you're dealing with and that includes the two or three different views found in Genesis. . . (no, it's not one story or foundation, nor is it of Jewish origin but far older, heralding from the Indus Valley)
According to Jewish mysticism (Kabalah & Sefer Yetzerah) god was within the void and contemplating himself. A look at the book A Kabbalah For The Modern World by Migene Gonzalez-Wippler offers insight to the idea that "science has proven the existence of God" and that he is LIGHT. . . an odd conclusion on one level given that light was the first creation but, let's look at this setting from a more analytical perspective.
The theory that a dead star is a compressed darkness/void that ultimately implodes on itself creating light a.k.a. the Big Bang. It actually fits both, scientific theory as well as the expansion-compression cycles mentioned in much of mystical "science", everything from the Kabalah to the writings of Blavatsky and observations of Buddha and numerous shaman the world about.
The "consciousness" that human beings identify as God/Goddess is where the questions come into play and where the non-believer finds footing for dispelling the idea of such things. For, as St. George of Carlin explained, "
Man Created God in His Own Image & Likeness. . . " which is probably the greater truth, even according to mysticism.
I realize that it seems a contrary thing but the old prophets and mystics deliberately obfuscated loads of information on purpose, so as to prevent others from abusing it. This habit seems to hint at another strange side of the Creation stories that get seriously ignored; the fact that an "earth" existed prior to the time we know -- the whole Adam & Eve cycle. Recent discoveries in Turkey & Greece even suggesting that societies of considerable advancement existed over 10,000 years ago, and idea put forth about 100 years back by James Woodward who was ridiculed and basically dis-fellowshipped from a field he was once seen as a giant in. . . simply because he was finding a plausible pattern tied to a far older society on the planet that happened to sustain the Lemuiran & Atlantian tales. Then again, David Childress seems to be furthering and up-dating a large chunk of what Woodward was trying to figure out.
My point being that things seem to be rather cyclic when it comes to life as well as human existence on this little sphere we call home. Kind of makes you wonder if the "Creation" tales are genuine or simply recollection on a new beginning for a specific group. The biblical suggestion that such could be the case lays in the lore surrounding Lilith (Adams first wife, before Eve) as well as the latter commandment to commit genocide on certain races that supposedly came as a result of Lilith's ambitions and arrogance. . . then again, it is said she was Hermaphrodite and thus, able to impregnate herself. . . go figure; a self-made god with a daughter that can go screw herself at will
I've gone down a meandering pike here, but at the same time I hope that I've dropped some breadcrumbs for you to follow when it comes to your question.
Enjoy the journey