Only half of the positions that Amazon.com Inc. has promised to bring to its two new headquarters in New York and Virginia will be tech jobs, government officials in both states say.

New York City officials said during a presentation Tuesday night that of the at least 25,000 jobs that the online retailer plans to bring to a new headquarters in Long Island City, Queens, 12,500 will be in tech.

The...