Bay of Pigs was planned under Ike direction where CIA will invade Cuba from its base in central America with the Navy providing logistics and firepower support. The goal is to overthrow the Cuban revolutionary government and re-install the Mafia there. Kennedy inherited the plan and had 1 month to make a decision. He pulled the Navy out of the plan because it would violate the UN founding charter. Cuba intelligence got hold of the plan. The invasion failed without Navy support and Cuba preparedness. The CIA force was wiped out. (US later passed law prohibiting CIA to have its own military.) The CIA blamed JFK but it is solely to blame for proceeding without a new plan. JFK was the one who cancelled deployment of military advisors to S Vietnam. There was no troops. LBJ was the one who ordered direct military force into Vietnam to start the war. JFK decisions on Cuba and Vietnam directly contributed to his assassination. It's the War Machine against a president.