TEL AVIV—Amazon.com Inc. said it has agreed acquire secretive Israeli chip designer Annapurna Labs Ltd., a potential boost to its rapidly growing business that rents computing power to other companies.

An Amazon spokeswoman confirmed the deal after The Wall Street Journal and others reported on Thursday that the two companies were in advanced talks. She declined to disclose terms.

Annapurna...