You know, if you wanted to improve carbon footprint, a better place to look might be at software bloat. The sheer number of times things get encoded and decoded to text is mind boggling. Especially in "typical node, Java loads".
In my limited and sheltered experience, the only viruses I've gotten in the past decade or so was from dodgy pirated stuff or big "download" button ads on download sites.
I agree however that certain AWS services are disproportional expensive.
(Unless they are doing something like putting profits towards some sort of carbon maximization scheme)