Amazon.com Inc (NASDAQ:AMZN) has committed to buying electricity from 450 MW of solar parks to power its data centres in California under a deal with power distributor AES Corp (NYSE:AES).