Skip to content

Commit acbb8a4

Browse files
authored
Added gcp_attributes.local_ssd_count to databricks_instance_pool resource (#2558)
Also fixed error in documentation about `gcp_availability` attribute This fixes #2557
1 parent 9451b42 commit acbb8a4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/resources/instance_pool.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ The following options are [available](https://docs.microsoft.com/en-us/azure/dat
7070

7171
The following options are [available](https://docs.gcp.databricks.com/dev-tools/api/latest/clusters.html#gcpavailability):
7272

73-
* `availability` - (Optional) Availability type used for all nodes. Valid values are `PREEMPTIBLE_GCP`, `PREEMPTIBLE_WITH_FALLBACK_GCP` and `ON_DEMAND_GCP`, default: `ON_DEMAND_GCP`.
73+
* `gcp_availability` - (Optional) Availability type used for all nodes. Valid values are `PREEMPTIBLE_GCP`, `PREEMPTIBLE_WITH_FALLBACK_GCP` and `ON_DEMAND_GCP`, default: `ON_DEMAND_GCP`.
74+
* `local_ssd_count` (optional, int) Number of local SSD disks (each is 375GB in size) that will be attached to each node of the cluster.
7475

7576

7677
### disk_spec Configuration Block

pools/resource_instance_pool.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ type InstancePoolAzureAttributes struct {
2828
// InstancePoolGcpAttributes contains aws attributes for GCP Databricks deployments for instance pools
2929
// https://docs.gcp.databricks.com/dev-tools/api/latest/instance-pools.html#instancepoolgcpattributes
3030
type InstancePoolGcpAttributes struct {
31-
Availability clusters.Availability `json:"gcp_availability,omitempty" tf:"force_new"`
31+
Availability clusters.Availability `json:"gcp_availability,omitempty" tf:"force_new"`
32+
LocalSsdCount int32 `json:"local_ssd_count,omitempty"`
3233
}
3334

3435
// InstancePoolDiskType contains disk type information for each of the different cloud service providers

0 commit comments

Comments
 (0)