Erickson, who has been in jail since the murder, will not be eligible for parole before 2027.
As part of a plea deal, Erickson pleaded guilty in July to aggravated murder and prosecutors agreed not to seek the death penalty.
The victim, Timothy McEnaney, 32, was a Missouri native who had relocated to southern Utah. He was living with Erickson's ex-wife at the time of the killing, said Beaver County Prosecutor Von J. Christiansen.
Authorities say Erickson, 31, entered the Timberline Inn about 5 p.m. on Dec. 1, walked to McEnaney's table and shot him twice in the head in view of 20 customers.
The Beaver County SWAT team later arrested Erickson, who was under the influence of methamphetamine at the time of the killing, Christiansen said.
The Ericksons divorced in November 2006, court records indicate. It was the first Beaver County homicide in more than 10 years, Christiansen said.