Amazon has pledged to spend $1.2 billion to provide free skills training to about 300,000 Amazon employees.