The fail-fast idea is what I'd take away from this — a server that can't load its settings shouldn't sit there alive but useless, it should exit and let auto scaling replace it. Baking the CLI into the image, plus turning off unattended-upgrades on first boot, would have removed the race at the source instead of just retrying around it.