Whoopi Goldberg is back in good health but earlier this year she very nearly lost her life.

“I’m very, very lucky,” the 63-year-old told People in a new interview.

RELATED: Whoopi Goldberg Admits ‘The View’ Is Not Enough To Fulfill Her Creatively

In February, Goldberg ended up in hospital after being diagnosed with pneumonia and sepsis, a potentially fatal condition caused by infection.

The doctor told me, ‘Listen, you’re not going anywhere tomorrow and you’re not going anywhere next week because you are really sick,'” “The View” co-host recalled.

Goldberg took a six-week hiatus from the show, during which time she had her lungs drained twice.

“It’s going to be a while before I’m back to 100 per cent,” she said.

RELATED: Whoopi Goldberg And Joy Behar Censored During Anti-Trump Rant On ‘The View’

Now, Goldberg is back on “The View” four days a week.

“I’ve cut down a lot of the stuff that I would normally be doing and I have to rest,” she said. “There’s no getting around it. In the morning I go and do the show, then afterward I have my other work, and by 3 o’clock, I have to sit down. I have to stop. It’s taking a little while, but I’m getting there.

“I’m lucky to be alive. I’m happy to be alive. I’m grateful to be alive.”