# Promote cloud sql replica via Terraform

**URL:** <https://discuss.hashicorp.com/t/promote-cloud-sql-replica-via-terraform/23111>\
**Category:** Terraform\
**Tags:** hcp-terraform\
**Created:** [April 13, 2021, 9:09pm UTC](https://discuss.hashicorp.com/t/promote-cloud-sql-replica-via-terraform/23111 "2021-04-13T21:09:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akritic](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/akritic/32/18600_2.png) [@Akritic](https://discuss.hashicorp.com/u/Akritic)\
**Post date:** [April 13, 2021, 9:09pm UTC](https://discuss.hashicorp.com/t/promote-cloud-sql-replica-via-terraform/23111/1 "2021-04-13T21:09:24Z")

</div>

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?
