Terraform state management

How to handle(ignore) manual changes in the state file - resources provisioned with count and terminated a few of it.

In AWS, ec2 resource provisioned with count of 10, latter a few of it was terminated. How to Ignore changes for the resources itself?


I don’t think you can without changing the code