U.S. Secretary of Defense Jim Mattis walks to greet incoming National Security Advisor John Bolton upon Bolton's arrival for a meeting at the Pentagon, on March 29, 2018 in Arlington, Virginia.  (Mark Wilson/Getty Images)
Mark Wilson/Getty Images
U.S. Secretary of Defense Jim Mattis walks to greet incoming National Security Advisor John Bolton upon Bolton's arrival for a meeting at the Pentagon, on March 29, 2018 in Arlington, Virginia. (Mark Wilson/Getty Images)
Now playing
01:49
Mattis writes on experience working for Trump in essay
Now playing
03:13
'Pure nonsense': Deconstructing common myths about the vaccine
US President Joe Biden waves as he participates in a CNN Town Hall hosted by Don Lemon at Mount St. Joseph University in Cincinnati, Ohio, July 21, 2021. (Photo by SAUL LOEB / AFP) (Photo by SAUL LOEB/AFP via Getty Images)
SAUL LOEB/AFP/AFP via Getty Images
US President Joe Biden waves as he participates in a CNN Town Hall hosted by Don Lemon at Mount St. Joseph University in Cincinnati, Ohio, July 21, 2021. (Photo by SAUL LOEB / AFP) (Photo by SAUL LOEB/AFP via Getty Images)
Now playing
02:17
See what Biden said about today's infrastructure vote
CNN/Getty Images
Now playing
02:50
Carl Bernstein: Trump is our own American war criminal
CNN
Now playing
02:19
Tapper presses Republican on GOP resistance to January 6 probe
Now playing
01:35
Republican governor balks at Covid-19 mandates as state's cases soar
Dr. Fauci NIH research China Tapper sotu vpx _00023404.png
CNN
Dr. Fauci NIH research China Tapper sotu vpx _00023404.png
Now playing
03:13
Dr. Fauci weighs in on if US should collaborate with Wuhan labs in future
Pool
Now playing
02:06
WaPo: This is what Trump's PAC is spending its money on
CNN
Now playing
02:04
AZ lawmaker says audit 'not about Trump.' Her emails show otherwise
Getty Images
Now playing
01:55
'Almost giddy': Author describes Trump during Capitol riot
Florida Gov. Ron DeSantis, center, speaks during a news conference at West Miami Middle School in Miami on Tuesday, May 4, 2021.
Matias J. Ocner/Miami Herald/AP
Florida Gov. Ron DeSantis, center, speaks during a news conference at West Miami Middle School in Miami on Tuesday, May 4, 2021.
Now playing
02:20
Florida Gov. Ron DeSantis blames this for surge in cases
CNN
Now playing
03:31
'I got elected to shake things up': Lightfoot on time as mayor
US Speaker of the House, Nancy Pelosi, Democrat of California, speaks at her weekly press briefing on Capitol Hill in Washington, DC, on July 22, 2021. (Photo by Brendan SMIALOWSKI / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
BRENDAN SMIALOWSKI/AFP/AFP via Getty Images
US Speaker of the House, Nancy Pelosi, Democrat of California, speaks at her weekly press briefing on Capitol Hill in Washington, DC, on July 22, 2021. (Photo by Brendan SMIALOWSKI / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
01:21
Pelosi explains why she rejected GOP lawmakers from January 6 committee
WASHINGTON, DC - JULY 20: U.S. President Donald Trump talks to reporters with Vice President Mike Pence in the Oval Office at the White House July 20, 2020 in Washington, DC. Trump hosted Republican Congressional leaders and members of his cabinet to talk about a proposed new round of financial stimulus to help the economy during the ongoing global coronavirus pandemic.  (Photo by Doug Mills-Pool/Getty Images)
Pool/Getty Images North America/Getty Images
WASHINGTON, DC - JULY 20: U.S. President Donald Trump talks to reporters with Vice President Mike Pence in the Oval Office at the White House July 20, 2020 in Washington, DC. Trump hosted Republican Congressional leaders and members of his cabinet to talk about a proposed new round of financial stimulus to help the economy during the ongoing global coronavirus pandemic. (Photo by Doug Mills-Pool/Getty Images)
Now playing
06:43
Trump shares disappointment with Pence in new audio recording
Now playing
01:26
Pelosi just made an unprecedented move. Here's why
Biden town hall vpx
CNN
Biden town hall vpx
Now playing
01:45
Biden reveals what world leaders are asking him about America
CNN —  

A new biography of former Defense Secretary James Mattis reports President Donald Trump personally got involved in who would win a major $10 billion contract to provide cloud computing services to the Pentagon, according to the website Task & Purpose, which writes about military issues.

That hotly contested contract was awarded to Microsoft on Friday evening over Amazon in a months-long battle.

Task & Purpose reports the new book, “Holding The Line: Inside Trump’s Pentagon with Secretary Mattis” by former Mattis speechwriter and communications director Guy Snodgrass recounts that Mattis always tried to translate Trump’s demands into ethical outcomes.

According to Snodgrass’ book, Trump called Mattis during summer 2018 and directed him to “screw Amazon” out of the opportunity to bid on the contract.

Task & Purpose obtained an advanced copy of the book. CNN has not yet seen the book.

For several years Trump has voiced his displeasure with Amazon and Jeff Bezos, who also owns The Washington Post. He has accused Amazon of taking advantage of the Postal Service although independent investigations have disagreed with that contention. He also has linked his unfavorable view of Washington Post reporting to Amazon although the Post makes clear it is run separately.

“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 wrote according to Task & Purpose.

The White House did not immediately respond to a CNN request for comment.

In response to the book and some of the other claims it contains, a spokeswoman for Mattis earlier this week released a statement saying Snodgrass was a “junior staffer” and “played no role in decision making.” Snodgrass has responded to those claims by showing a citation he received in which he said he played a vital and influential role in the Pentagon’s messaging.

Amazon and Microsoft react

In a statement, Amazon said it is surprised at the decision.

“(Amazon Web Services) is the clear leader in cloud computing, and a detailed assessment purely on the comparative offerings clearly lead to a different conclusion,” the statement read. “We remain deeply committed to continuing to innovate for the new digital battlefield where security, efficiency, resiliency, and scalability of resources can be the difference between success and failure.”

In a statement, Microsoft pointed reporters to the Defense Department’s announcement.

“We are working on this right now. In the meantime for more information see the DOD’s announcement,” the statement read.

In July, Trump vowed that his administration would take a “strong look” at the Pentagon’s contract plan, saying that “some of the greatest companies in the world” had complained including IBM, Oracle and Microsoft.

Oracle had pushed hard to scuttle Amazon’s effort, going so far as to develop a document alleging that officials inside and outside the Pentagon had conspired to help Amazon win. CNN reported in July that the document had made its way to Trump’s desk.

Multiple independent reviews of the process found little evidence of wrongdoing, however.

In a statement, the Defense Department’s Office of the Inspector General said investigators are close to completing their work reviewing the awarding of the contract.

“To date, we have not found evidence that we believe would prevent the DoD from making a decision about the award of the contract,” said Dwrena Allen, spokesperson for the inspector general’s office. “We hope to have a completed report of our findings by the end of November, which we intend to release publicly, to the maximum extent possible.”

CNN’s Jason Seher contributed to this story