Amazon.com Inc. is testing a new service that will make it easier for businesses to run artificial intelligence software on computers rented from the company, people familiar with the situation said, stepping up competition with Alphabet Inc. unit Google, Microsoft Corp. and International Business Machines Corp.