How do you handle changes to globally replicated redis clusters. eg when the primary fails over?

I am experimenting with '‘aws_elasticache_global_replication_group’ and ‘aws_elasticache_replication_group’

The question i have is how do I resolve terraform differences during a failover event?

We reconcile our terraform by importing into tf state the resources that were created by the old primary tf config (in old region) into the new primary tf config in the failover region. That is usually something like:
tf import ‘aws_elasticache_replication_group.primary’ proj-env-replica-us-east-2
tf import ‘aws_elasticache_global_replication_group.default’ ldgnf-proj-env-gds