According to Amazon, Trump "launched repeated public and behind-the-scenes attacks to steer the JEDI Contract away from AWS to harm his perceived political enemy-Jeffrey P. Bezos."

"Throughout the final year of the multi-year award process, the President of the United States and Commander in Chief of our military used his power to "screw Amazon" out of the JEDI Contract as part of his highly public personal vendetta against Mr. Bezos, Amazon, and the Washington Post," the lawsuit states.

In a statement provided to The Guardian, Pentagon spokeswoman Elissa Smith said the decision to select Microsoft "was made by an expert team of career public servants and military officers" without external influence.

Initially, Amazon, Microsoft, IBM and Oracle were in the running for the JEDI (Joint Enterprise Defense Infrastructure) contract. The project is intended to store and process vast amounts of classified data. Amazon and Microsoft advanced to the final round, but before a decision was made, the Pentagon temporarily halted the competition after Trump suggested that the bid might be rigged in favor of Amazon. Months later, the JEDI contract was awarded to Microsoft.

Engadget has reached out to Amazon and the Pentagon for additional comment.