Change terraform provider

Currently, I am using “Mongey/kafka” provider and now I have to switch to “confluentinc/confluent” provider with my existing terraform pipeline. How can I do this without impacting the existing resources created with these pipelines?