How to Handle Terraform Drift in a Large AWS Environment?

0
12
Asked By CuriousCat92 On

I've recently taken over a large AWS setup where Terraform is heavily utilized. The problem is, there have been manual changes and CI/CD pipelines continually making updates that aren't tracked in Terraform, leading to significant drift in the infrastructure. I'm looking for effective strategies to address and resolve this Terraform drift, especially on a large scale. Any advice would be greatly appreciated!

3 Answers

Answered By TechieGuru77 On

One quick way to prevent further drift is to restrict user access to the AWS console and control plane APIs. This will help keep things in check moving forward. But first, you’ll need to address the existing drift!

CuriousCat92 -

That’s a great point! I just need to know the best approach to actually fix the drift that’s already there.

Answered By DevOpsDude On

We’ve been using Spacelift for drift detection. It’s a pretty handy tool! Just remember to only allow read access to the resources so you can reduce drift risks.

Answered By CloudMasterX On

Have you checked out driftctl by Trivy? It doesn’t capture all resources, but it's a solid starting point. Also, if your Terraform resources aren’t tagged, consider adding a global tag to help manage what’s out there better.

CuriousCat92 -

Thanks for the tip! I'll definitely look into that.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.