cockroachdb / terraform-provider-cockroach

Terraform provider for CockroachDB Cloud
Apache License 2.0
56 stars 10 forks source link

Documentation is out of date for dedicated clusters #33

Closed aindeev closed 1 year ago

aindeev commented 1 year ago

The schema in the documentation at https://registry.terraform.io/providers/cockroachdb/cockroach/latest/docs/data-sources/cluster#nested-schema-for-configdedicated

Does not match how I actually needed to set up my TF configuration:

resource "cockroach_cluster" "main" {
  name           = local.cluster_name
  cloud_provider = "GCP"
  create_spec = {
    dedicated = {
      region_nodes  = {
        us-west2 = 3
      }
      hardware = {
        machine_spec = {
          machine_type = "n1-standard-2"
        }
      }
    }
  }
}
marksoper commented 1 year ago

@aindeev we have made a change to the cluster schema and associated docs. They should be consistent now. Please LMK if you're still seeing a problem.