BS Yediyurappa resigned from his post exactly two years after he took charge during an event celebrating two years of his tenure.