The elected official getting most of the blame for Amazon’s decision not to open a new headquarters in Queens is Rep. Alexandria Ocasio-Cortez, according to a poll released Monday.

The Siena College poll asked New York state voters who was the “hero,” “villain” or “role player” in the Amazon debacle and Ocasio-Cortez led the pack.

Thirty-eight percent identified the freshman congresswoman as the biggest villain while only 12 percent called her a hero.

By comparison, 34 percent called local activists the chief villain; 29 percent Mayor Bill de Blasio; 28 percent Gov. Andrew Cuomo; 26 percent Amazon itself; 21 percent the state Senate, and 17 percent labor unions.

“Who do New Yorkers blame? Well, there’s certainly blame enough to go around … However, voters say the biggest villain was Rep. Alexandria Ocasio-Cortez,” said pollster Steven Greenberg.

“Amazon itself was seen as the biggest villain among Democrats, but Republicans and independents had Ocasio-Cortez as far and away the largest villain, followed by the local Queens activists.”

Voters overwhelmingly viewed Amazon’s decision to back out of its deal as a blow to the state.

Sixty-seven percent said the withdrawal was “bad” for New York, while only 21 percent said it was “good,” the Siena College Poll found.

And by a 2-to-1 margin, voters said they supported the agreement that would have allowed Amazon to receive $3 billion in government incentives in exchange for creating 25,000 jobs — 61 percent in favor and 30 percent opposed.

“Clearly, jobs outweigh the cost of government incentives in the minds of most voters,” Greenberg said.

Following the Amazon fiasco, more voters believe New York state government — where Democrats now control the governorship, Senate and Assembly — is more hostile to business.

A staggering 67 percent of voters agreed with the statements that the current politics of state government is making it harder for businesses in New York to be successful, while only 26 percent disagreed. Even 53 percent of Democrats agreed with the statement.

Moreover, 51 percent of voters now believe New York is moving too far to the political left, while 36 percent disagreed.

On other issues:

Congestion pricing: Voters are split on whether Albany should impose a congestion pricing toll to enter Midtown, with 43 percent in favor and 42 percent opposed. More downstate voters from the city and suburbs were opposed, while more upstaters backed the measure.

Property tax cap: 59 percent of voters support making the 2 percent annual cap permanent, while 25 percent were opposed.

Driver’s licenses for illegal immigrants: 61 percent of voters oppose allowing undocumented immigrants to obtain a license compared to 34 percent who support the measure.

Marijuana: 53 percent of voters support legalizing the recreational use of weed, while 43 percent were opposed.

Bail: 53 percent of voters back the elimination of monetary bail for defendants facing misdemeanor or non-violent crimes, compared to 39 percent who don’t.

Vaccinations: 79 percent support requiring the vaccinations of students for measles and other diseases as a condition of attending school, while 18 percent opposed the mandate.

The poll queried 700 registered voters and has a margin of error of 4.2 percentage points.