(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.

Read More