Amazon announced plans to expand its technology hub in the Boston area, creating some 3,000 jobs in the next few years.