Only one cluster, max.

Only allow one cluster for bigtable instances. We can expand to 2 for
2.0.0.
This commit is contained in:
Paddy Carver 2018-10-03 18:01:26 -07:00
parent a814a587c7
commit f743cc057b
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ func resourceBigtableInstance() *schema.Resource {
"cluster": {
Type: schema.TypeSet,
Optional: true,
MaxItems: 2,
MaxItems: 1,
ConflictsWith: []string{"cluster_id", "zone", "num_nodes", "storage_type"},
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{

View File

@ -40,7 +40,7 @@ The following arguments are supported:
* `display_name` - (Optional) The human-readable display name of the Bigtable instance. Defaults to the instance `name`.
* `cluster` - (Optional) A block of cluster configuration options. Either `cluster` or `cluster_id` must be used. At most two clusters may be specified. See structure below.
* `cluster` - (Optional) A block of cluster configuration options. Either `cluster` or `cluster_id` must be used. Only one cluster may be specified. See structure below.
* `cluster_id` - (Optional, Deprecated) The ID of the Cloud Bigtable cluster. Use `cluster.cluster_id` instead.