First---the old USSR had a GDP PPP of 2,5trln$ (in current prices), while Iran has a GDP PPP of 1,6trln$ today.
Soviets, having a 2,5trln$ GDP could build fighters, helicopters, ICBMs, nuclear subs and many more
See no reason why modern Iran with 1,6trln$ GDP can't afford indigeneous military...