India has taken a firm stance amid the EU sanctions and threat from the United States over Russian oil purchase, saying that energy security is the prime concern and the New Delhi will do what is needed to be done.