The buildup of military hardware comes as the U.S. and Iran are still pursuing diplomatic talks that could help avert a conflict.