A new book reportedly alleges that President Trump Donald John TrumpFederal prosecutor speaks out, says Barr 'has brought shame' on Justice Dept. Former Pence aide: White House staffers discussed Trump refusing to leave office Progressive group buys domain name of Trump's No. 1 Supreme Court pick MORE instructed then-Defense Secretary James Mattis James Norman MattisBiden courts veterans amid fallout from Trump military controversies Trump says he wanted to take out Syria's Assad but Mattis opposed it Gary Cohn: 'I haven't made up my mind' on vote for president in November MORE to "screw Amazon" out of the opportunity to bid on a $10 billion contract in 2018.

Military news outlet Task & Purpose reported that an upcoming book, "Holding The Line: Inside Trump's Pentagon with Secretary Mattis," written by the former secretary's erstwhile speechwriter and communications director Guy Snodgrass, divulges and outlines the accusation.

A portion of the book also details Mattis's ethical struggle with the president's demands.

ADVERTISEMENT

"Relaying the story to us during Small Group, Mattis said, 'We're not going to do that. This will be done by the book, both legally and ethically," Snodgrass reportedly wrote.

Trump has often lashed out at Amazon and its CEO, Jeff Bezos Jeffrey (Jeff) Preston BezosTwitter mandates lawmakers, journalists to beef up passwords heading into election Hillicon Valley: DOJ indicts Chinese, Malaysian hackers accused of targeting over 100 organizations | GOP senators raise concerns over Oracle-TikTok deal | QAnon awareness jumps in new poll Amazon planning small delivery hubs in suburbs MORE, who also owns The Washington Post.

Last year, he accused Amazon of scamming the Postal Service on shipping costs.

The Hill has reached out to the White House, Defense Department and Amazon for comment.

The Pentagon announced Friday that it had awarded a $10 billion contract to Microsoft over Amazon.

The department said in a statement that giving the contract to Microsoft "continues our strategy of a multi-vendor, multi-cloud environment" and that "the department’s needs are diverse and cannot be met by any single supplier."

According to CNN, a Mattis spokeswoman this week released a statement in response to the book calling Snodgrass a "junior staffer" who "played no role in decision making." Snodgrass reportedly responded by showing a citation he was given saying he played an important role in the Defense Department's messaging.