'Such' can be a predeterminer (see paragraph 1.236) referring back to something that has already been mentioned. It comes in front of the determiner 'a' or 'an'.
They lasted for hundreds of years. On a human time scale, such a periodseems an eternity.
On one occasion the school parliament discussed the dismissal of a teacher. Butsuch an eventis rare.