r/devops • • Jul 19 '24

Really hate crowdstrike right now...

Anybody else stuck in a call?

594 Upvotes

372 comments sorted by

View all comments

Show parent comments

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.

4

u/Wooden_Possible1369 Jul 20 '24

Couldn't you automate via AWS CLI without having to SSH to the machine?

1

u/Centimane Jul 20 '24

Depends on your cloud provider and needs, but yes.

I was just listing some of the tools, it wasn't meant as an exhaustive list.

2

u/JazzlikeIndividual Jul 20 '24

well in this case you can't even ssh onto it due to crashes, so maybe not in this case

Definitely more of a one-off bash script using your cloud provider's admin cli situation

2

u/Centimane Jul 20 '24

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.

1

u/JazzlikeIndividual Jul 21 '24

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

1

u/Centimane Jul 21 '24

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.