A plan shows an RDS instance's `engine_version` going from `15.8` back to `15.4`. Nobody changed it.
IntermediateTroubleshootingLost, Corrupted and Drifted State
Answer
Likely causes → auto_minor_version_upgrade = true let AWS upgrade the engine during a maintenance window; your code still pins 15.4. Downgrading isn't possible, so the apply would fail.
Diagnose → aws rds describe-db-instances --db-instance-identifier prod-db --query 'DBInstances[0].EngineVersion'
Fix → Pin only the major version (engine_version = "15") so minor upgrades don't show as drift, or update code to 15.8. Alternatively ignore_changes = [engine_version].
Prevent → Decide who owns upgrades: either AWS (major-only pin) or Terraform (auto minor off, explicit bumps via PRs).
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