NEW YORK -- Online shopping giant Amazon is buying MGM, the movie and TV studio behind James Bond, 鈥淟egally Blonde鈥 and 鈥淪hark Tank,鈥 with the hopes of filling its video streaming service with more stuff to watch.

Amazon is paying US$8.45 billion for MGM, making it the company's second-largest acquisition after it bought grocer Whole Foods for nearly $14 billion in 2017.

The deal is the latest in the media industry that's aimed at boosting streaming services to compete against Netflix and Disney+. AT&T and Discovery announced last week that they would combine media companies, creating a powerhouse that includes HGTV, CNN, Food Network and HBO.

Amazon doesn't say how many people watch its Prime Video streaming service, but more than 200 million people have access to it because they pay for Prime membership, which gives them faster shipping and other perks.

Amazon said Wednesday that it would use MGM's vast library, which includes famous characters such as Rocky, RoboCop and Pink Panther, to create new movies and shows.

鈥淚t's going to be a lot of fun work,鈥 said Amazon founder Jeff Bezos, during the company's shareholder meeting on Wednesday. 鈥淧eople who love stories are going to be the big beneficiaries.鈥

Sucharita Kodali, an eCommerce analyst at Forrester Research Inc., said streaming companies need shows people can't watch elsewhere in order to standout and be competitive.

鈥淭here is an arms race to get what you can while the window is open,鈥 she said. Plus, the price tag is just a tiny fraction of Amazon's valuation, which is nearing $2 trillion.

Known for its roaring lion logo, MGM is one of the oldest studios in Hollywood, founded in 1924 when films were still silent. But its shine has faded considerably over the years. In the mid-1980s, it sold much of its pre-1948 catalog, including 鈥淭he Wizard of Oz鈥 and 鈥淕one with the Wind,鈥 which is now owned by Warner Bros. And its sprawling California lot was bought by Sony.

For much of the past decade, MGM juggled bankruptcy and a revolving door of owners while its new releases dwindled. Long up for sale, MGM's desirability was lessened, not just because of its partially auctioned-off library, but because its prized property - James Bond - isn't owned outright. MGM splits ownership of it with Barbara Broccoli and Michael G. Wilson, who have ultimate control over the franchise. The release of the latest James Bond entry, 鈥淣o Time to Die,鈥 has been on hold through the pandemic, with a fall release now planned.

Its other upcoming movies include Paul Thomas Anderson's next film, 鈥淪oggy Bottom,鈥 starring Bradley Cooper; Ridley Scott's 鈥淗ouse of Gucci,鈥 with Lady Gaga and Adam Driver; and the upcoming Aretha Franklin biopic 鈥淩espect,鈥 with Jennifer Hudson. Its library still includes more than 4,000 movies, including 鈥淪ilence of the Lambs鈥 and 鈥淭helma & Louise,鈥 and 17,000 TV shows, such as reality TV staples 鈥淪hark Tank鈥 and 鈥淭he Real Housewives of Beverly Hills.鈥 Amazon will also get cable channel Epix out of the deal.

Amazon already has its own studio, but has had mixed results. Two of its shows, 鈥淭he Marvelous Mrs. Maisel鈥 and 鈥淔leabag,鈥 won best comedy series Emmys. Although it has won several Oscars, including most recently for 鈥淪ound of Metal,鈥 many of its films have failed to click with audiences at the box office. Recently, Amazon has been spending on sports and splashy shows. It will stream 鈥淭hursday Night Football鈥 next year and is producing a 鈥淟ord of the Rings鈥 show, which reportedly cost $450 million for its first season alone.

Seattle-based Amazon.com Inc. declined to say when it expects the deal to be finalized. But when it does, it will make Amazon, already one of the most powerful and valuable companies in the world, even bigger. Regulators around the world are scrutinizing Amazon's business practices, specifically the way it looks at information from businesses that sell goods on its site and uses it to create its own Amazon-branded products.

A report by the House Judiciary Committee in October called for a possible breakup of Amazon and others, making it harder for them to buy other businesses and imposing new rules to safeguard competition.

Amazon, founded in 1995 as an online bookstore, has become a $1.6 trillion behemoth that does a little bit of everything. It has a delivery business network that gets orders to people in two days or sooner; sells inhalers and insulin; has a cloud-computing business that powers the apps of Netflix and McDonald's; and has plans to send more than 3,200 satellites into space to beam internet service to Earth.

------

AP Film Writer Jake Coyle in New York also contributed to this story.