Join us Nov 24 to watch Insights Agent turn slow queries into PRs. RSVP
Navigation

Configure replicas for Postgres branches in Terraform

Set the number of replicas for a Postgres branch with v1.21.0 of the PlanetScale Terraform provider. Use the new replicas attribute on the planetscale_postgres_branch resource to run a single-node or high-availability branch. The planetscale_postgres_branch data source also exposes it.

Set replicas to 0 for a single-node branch with no replicas, or to a value from 2 to 8 for high availability. If you leave it out, the branch uses the default for its cluster size.

Read more in the Terraform provider docs