Closed andrewnester closed 1 week ago
@pietern it is started by default so indeed deployment takes longer in this case
How can folks use this with: bundle: compute_id: ${resources.clusters.my_cluster.id}
You can do this in target overrides but I'd better remove it from example because it is confusing, this is just to illustrate that reference string can be used for compute id
@andrewnester Is there a way we can avoid starting it (or waiting for it to start)?
@pietern unfortunately we can't as TF provider and Go SDK explicitly wait for cluster to be running https://github.com/databricks/terraform-provider-databricks/blob/main/clusters/resource_cluster.go#L413C2-L420
@andrewnester Waiting for it to start indeed seems pretty unfortunate, especially for development ... Does that happen every time, or just when it's first created?
You can do this in target overrides but I'd better remove it from example because it is confusing, this is just to illustrate that reference string can be used for compute id
But that would work, right? Setting bundle.cluster_id
? Otherwise these all-purpose clusters are quite hard to use. You can't use a regular override to override a job cluster (new_cluster
) with an all-purpose cluster (existing_cluster_id
)
[edit]I opened a thread on this below[/edit]
Adding the label because we need the TF-side change to be released first.
Changes
Added support for creating all-purpose clusters
Example of configuration
Tests
Added unit, config and E2E tests