Interview Prep/Terraform/Refactoring, Migration and Drift

How do you let autoscaling or other systems own attributes?

IntermediateProductionRefactoring, Migration and Drift
Answer

Use lifecycle { ignore_changes = [...] } for exactly those attributes (desired_capacity, task_definition image, tags["..."]). Document why in a comment and keep the list as narrow as possible, because ignored attributes are blind spots for drift detection.

All Terraform questions Roadmap: Terraform in production

More on Refactoring, Migration and Drift