Skip to content

Commit 41772d5

Browse files
authored
Merge pull request #46 from data-platform-hq/fix_sql_serverless_config
fix: sql serverless config; clusters lifecycle rule removed
2 parents 2a2e698 + c070f06 commit 41772d5

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ No modules.
201201
| [databricks_secret_scope.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/secret_scope) | resource |
202202
| [databricks_service_principal.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/service_principal) | resource |
203203
| [databricks_sql_endpoint.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/sql_endpoint) | resource |
204-
| [databricks_sql_global_config.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/sql_global_config) | resource |
205204
| [databricks_system_schema.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/system_schema) | resource |
206205
| [databricks_token.pat](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/token) | resource |
207206
| [databricks_user.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/user) | resource |

cluster.tf

-6
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,6 @@ resource "databricks_cluster" "cluster" {
104104
}
105105
}
106106
}
107-
108-
lifecycle {
109-
ignore_changes = [
110-
state
111-
]
112-
}
113107
}
114108

115109
resource "databricks_cluster_policy" "this" {

main.tf

-7
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ resource "databricks_ip_access_list" "this" {
2727
}
2828

2929
# SQL Endpoint
30-
resource "databricks_sql_global_config" "this" {
31-
count = anytrue(var.sql_endpoint[*].enable_serverless_compute) ? 1 : 0
32-
33-
enable_serverless_compute = true
34-
}
35-
3630
resource "databricks_sql_endpoint" "this" {
3731
for_each = { for endpoint in var.sql_endpoint : (endpoint.name) => endpoint }
3832

@@ -49,7 +43,6 @@ resource "databricks_sql_endpoint" "this" {
4943
lifecycle {
5044
ignore_changes = [state, num_clusters]
5145
}
52-
depends_on = [databricks_sql_global_config.this]
5346
}
5447

5548
resource "databricks_system_schema" "this" {

0 commit comments

Comments
 (0)