Opposition came swiftly though, as details started to emerge.
Critics complained about public subsidies that were offered to Amazon and chafed at some of the conditions of the deal, such as the company's demand for access to a helipad. Some pleaded for the deal to be renegotiated or scrapped altogether.
"We knew this was going south from the moment it was announced," said Thomas Stringer, a site selection adviser for big companies.
"If this was done right, all the elected officials would have been out there touting how great it was. When you didn't see that happen, you knew something was wrong."
Stringer, a managing director of the consulting firm BDO USA LLP, said city and state officials need to rethink the secrecy with which they approached the negotiations. Community leaders and potential critics were kept in the dark, only to be blindsided when details became public.
"It's time to hit the reset button and say, 'What did we do wrong?'" Stringer said. "This is fumbling at the 1-yard line."
Amazon said in a statement Thursday that its commitment to New York City required "positive, collaborative relationships" with state and local officials and that a number of them had "made it clear that they oppose our presence and will not work with us to build the type of relationships that are required to go forward."
Not that Amazon is blameless, experts say.
Joe Parilla, a fellow at the Brookings Institution's Metropolitan Policy Program, said the company's high-profile bidding process may have stoked the backlash. Companies usually search for new locations quietly, in part to avoid the kind of opposition Amazon received.
"They had this huge competition, and the media covered it really aggressively, and a bunch of cities responded," Parilla said. "What did you expect? It gave the opposition a much bigger platform."
Richard Florida, an urban studies professor and critic of Amazon's initial search process, said the company should have expected to feel the heat when it selected New York, a city known for its neighborhood activism.
"At the end of the day, this is going to hurt Amazon," said Florida, head of the University of Toronto's Martin Prosperity Institute. "This is going to embolden people who don't like corporate welfare across the country."
Other tech companies have been keeping New York City's tech economy churning without making much of a fuss.
Google is spending US$2.4b to build up its Manhattan campus. Cloud-computing company Salesforce has plastered its name on Verizon's former headquarters in midtown, and music streaming service Spotify is gobbling up space at the World Trade Center complex.
Despite higher costs, New York City remains attractive to tech companies because of its vast, diverse talent pool, world-class educational and cultural institutions and access to other industries, such as Wall Street capital and Madison Avenue ad dollars.
No other metropolitan area in the US has as many computer-related jobs as New York City, which has 225,600, according to the Bureau of Labor Statistics. But San Francisco, San Jose, Seattle, Washington, Boston, Atlanta and Dallas each have a greater concentration of their workers in tech.
In the New York area, the average computer-related job pays roughly US$104,000 a year, about US$15,000 above the national average. Still, that's about US$20,000 less than in San Francisco.
Even after cancelling its headquarters project, Amazon still has 5,000 employees in New York City, not counting Whole Foods.
"New York has actually done a really great job of growing and supporting its tech ecosystem, and I'm confident that will continue," Samuels said.
"Today we took a step back, but I would not put the nail in the coffin of tech in New York City."
- AP