Plans always show `~ tags_all` changes on hundreds of resources after adding `default_tags` to the provider.
IntermediateTroubleshootingLost, Corrupted and Drifted State
Answer
Likely causes → Normal on the first apply after adding default_tags. Persisting changes come from a resource also setting the same tag key in tags with a different value, or a tag value computed at apply time (for example timestamp()).
Diagnose → terraform plan | grep -B3 -A6 tags_all to see which keys flip.
Fix → Apply once. Remove duplicated keys from resource-level tags, and never use timestamp()/uuid() in tags.
Prevent → Put static org tags only in default_tags; keep resource tags for resource-specific keys.
More on Lost, Corrupted and Drifted State
Someone deleted the state object from the S3 bucket. `terraform plan` now wants to create 140 resources that already exist.IntermediateState is gone and the bucket had no versioning. How do you recover a production stack?Advanced`Error: Failed to load state` followed by a JSON error like `invalid character '}' looking for beginning of object key string`.IntermediateThe plan prints `Note: Objects have changed outside of Terraform` and lists a security group with an extra ingress rule.BeginnerEvery plan wants to change `desired_capacity` on an Auto Scaling group back to 2, though autoscaling has raised it to 6.BeginnerA resource was deleted manually in the console. The plan wants to create it, and an apply fails because a dependent resource still references the old ID.Intermediate