However: a country without a military (or an allied country with a military) is very quickly not a country. If the US and Europe stopped having a (working) military, they would be immediately taken over by totalitarian regimes who would be delighted to trample over all the rights and privileges their citizens currently enjoy. South Korea, Taiwan, and many other countries/regions would instantly be destroyed by powerful and dangerous neighbors. Free countries are not free because everyone around the world is nice; they are free because people are willing to die to protect them.
A military must have weapons that can kill people. The real goal of such weapons in a western democracy is not to kill people - it's to be able to kill people so that no one will take over or threaten the country and its allies (at least not without consequences). It is entirely ethical to enable self-defense, and self-defense is the purpose of the Department of Defense (remember, its very name is "Defense"). The ACM code of ethics doesn't forbid this, because it focuses on unintentional harm, not intentional harm from a lawful order to protect a country. The author seems to think it's unethical to enable self-defense, and that's just nonsense. Weapons (and anything else) can be misused, but we need to hold the misusers responsible - not pretend that they aren't needed. It's a good thing that military personnel are willing to risk their lives to protect others, even those who don't appreciate their sacrifices to do so.