Instituting the Reign of Terror.
Defense probably but if rapidly expanding maybe offensive.
It strengthened Fidel Castro's position. The bay of pigs was a failed attempt to remove him from power. When it failed the U.S was exposed as trying to start a revolution with one of their "allies". This really hurt the U.S in the future because it led other countries not to trust them.
It help us see with out candles consally burnig and people burned them self a lot less