The woman in Revelation 12 is a metaphor for the nation of Israel and her child is Christ, whom Satan could not destroy and who was caught up to heaven. The reference to the sun, moon, and stars is a direct reference to Joseph's dream. But note that the events in 2017 are in the constellation Virgo, the Virgin.
Reference Genesis 37. Jacob interprets the sun and moon to be himself and Joseph's mother, the stars are Joseph's brothers.
1 Now Jacob lived in the land where his father had sojourned, in the land of Canaan. 2 These are the records of
Joseph, when seventeen years of age, was pasturing the flock with his brothers while he was still a youth, along with the sons of Bilhah and
the sons of Zilpah, his father’s wives. And Joseph brought back a bad report about them to their father. 3 Now Israel loved Joseph more than all
his sons, because he was the son of his old age; and he made him a varicolored tunic. 4 His brothers saw that their father loved him more than
all his brothers; and so they hated him and could not speak to him on friendly terms.
5 Then Joseph had a dream, and when he told it to his brothers, they hated him even more. 6 He said to them, "Please listen to this dream
which I have had; 7 for behold, we were binding sheaves in the field, and lo, my sheaf rose up and also stood erect; and behold, your sheaves
gathered around and bowed down to my sheaf.” 8 Then his brothers said to him, "Are you actually going to reign over us? Or are you really going
to rule over us?” So they hated him even more for his dreams and for his words.
9 Now he had still another dream, and related it to his brothers, and said, "Lo, I have had still another dream; and behold, the sun and the
moon and eleven stars were bowing down to me.” 10 He related it to his father and to his brothers; and his father rebuked him and said to him,
"What is this dream that you have had? Shall I and your mother and your brothers actually come to bow ourselves down before you to the
ground?” 11 His brothers were jealous of him, but his father kept the saying in mind