If it were me impacted (and it wasn't so grain of salt) - I would likely:
terraform destroy
terraform apply
[whatever comes next]
Use terraform to rebuild the resources and reconfigure them. Yea it's a pain, but it gets you back to a known state. That sort of practice should be doable, and if not there's a problem with your IaC practices.
how would you use terraform though if the box is bricked? Like a non-cloud instance? I guess you could hook up the PXE boot console at the infra layer and have your terraform do it from there, so long as you still had the keyservers available for bitlocker if the nodes had persistent data
Terraform won't help for individual workstations. But it would help with the servers.
You can also swap out workstations to an extent (probably not every workstation given the scale). But that allows you to have a batch that's fixed and roll them out, take in a bunch of broken and fix em, then roll those back out too.
14
u/Centimane Jul 19 '24
This is why terraform and other infra tools like cloud-init and ansible are so powerful.
A small team can't manually manage hundreds of servers, but they can automate it.