CARACAS: Two former US soldiers have been sentenced to 20 years in prison in Venezuela on charges including terrorism, after a failed bid to invade the Caribbean country last May, Attorney General Tarek William Saab said.