Attacking Iran has made the entire region less safe and so far there is no evidence Iran has been deterred. They continue to successfully hit targets with missiles and drones, and they have expanded operations to successfully close the Strait of Hormuz. Seems like it would have been a lot cheaper to not attack Iran and instead to rein in Israel, an existing nuclear power that is the primary destabilizing force in the Middle East.