They are talking about it to get the reaction from the US. If the US does not condemn Israel for talking of attacking, then they will attack at a time when least expected.
Here is the answer. Where are the U.S. aircraft carriers right now? That will tell you whether an invasion of Iran is imminent. I didn't see Barack Obama's name on that list.