Skip to content

[Feature] Add support for cluster logs delivery to UC Volumes #4492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### New Features and Improvements

* Add support for cluster logs delivery to UC Volumes ([#4492](https://github.com/databricks/terraform-provider-databricks/pull/4492)).
* Expose more attributes for `databricks_connection` resource ([#4502](https://github.com/databricks/terraform-provider-databricks/pull/4502)).

### Bug Fixes
Expand Down
1 change: 1 addition & 0 deletions clusters/resource_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ func (ClusterSpec) CustomizeSchema(s *common.CustomizableSchema) *common.Customi
s.SchemaPath("autoscale", "min_workers").SetOptional()
s.SchemaPath("cluster_log_conf", "dbfs", "destination").SetRequired()
s.SchemaPath("cluster_log_conf", "s3", "destination").SetRequired()
s.SchemaPath("cluster_log_conf", "volumes", "destination").SetRequired()
s.SchemaPath("spark_version").SetRequired()
s.AddNewField("cluster_id", &schema.Schema{
Type: schema.TypeString,
Expand Down
10 changes: 10 additions & 0 deletions docs/resources/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,16 @@ cluster_log_conf {
}
```

Example of pushing all cluster logs to UC Volumes:

```hcl
cluster_log_conf {
volumes {
destination = "/Volumes/catalog/schema/cluster_logs_volume/"
}
}
```

There are a few more advanced attributes for S3 log delivery:

* `destination` - S3 destination, e.g., `s3://my-bucket/some-prefix` You must configure the cluster with an instance profile, and the instance profile must have write access to the destination. You cannot use AWS keys.
Expand Down
Loading