Promote cloud sql replica via Terraform

Hello, I am trying to setup cross-region replica for my cloud sql. After it is successfully replicated, I want to promote the replica to a standalone database instance. Is there any way to promote the replica through Terraform? If yes, can anyone please provide me with an example?