Closed uLan08 closed 1 year ago
Thanks for reporting this, @uLan08! To get you unblocked, you can remove the "primary = true" line for that region (primary regions actually only apply to serverless clusters) and run terraform untaint cockroach_cluster.cluster
to avoid replacing the cluster.
@pjtatlow would you mind taking a look at this? It looks like if you try to specify a primary region for a dedicated cluster, it's ignored and the state doesn't match the plan, resulting in this error. We should probably return an error if a user tries to mark a dedicated region as primary and make sure the serverless restriction is well documented.
Thanks @erademacher, I did manage to unblock myself. Didn't know that primary regions only apply to serverless cluster, would be great if the plan already reflected this restriction and having this defined in the documentation as well.
Sorry I missed this for so long! @erademacher let me know if you have any ideas for a better docs message.
Received an error after applying, although the cluster itself was actually created.
Running a plan after this forced a recreation of the cluster
Terraform code
Terraform versions