Skip to content

Commit

Permalink
Merge pull request #46 from data-platform-hq/fix_sql_serverless_config
Browse files Browse the repository at this point in the history
fix: sql serverless config; clusters lifecycle rule removed
  • Loading branch information
owlleg6 authored Mar 14, 2024
2 parents 2a2e698 + c070f06 commit 41772d5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ No modules.
| [databricks_secret_scope.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/secret_scope) | resource |
| [databricks_service_principal.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/service_principal) | resource |
| [databricks_sql_endpoint.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/sql_endpoint) | resource |
| [databricks_sql_global_config.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/sql_global_config) | resource |
| [databricks_system_schema.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/system_schema) | resource |
| [databricks_token.pat](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/token) | resource |
| [databricks_user.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/user) | resource |
Expand Down
6 changes: 0 additions & 6 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,6 @@ resource "databricks_cluster" "cluster" {
}
}
}

lifecycle {
ignore_changes = [
state
]
}
}

resource "databricks_cluster_policy" "this" {
Expand Down
7 changes: 0 additions & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ resource "databricks_ip_access_list" "this" {
}

# SQL Endpoint
resource "databricks_sql_global_config" "this" {
count = anytrue(var.sql_endpoint[*].enable_serverless_compute) ? 1 : 0

enable_serverless_compute = true
}

resource "databricks_sql_endpoint" "this" {
for_each = { for endpoint in var.sql_endpoint : (endpoint.name) => endpoint }

Expand All @@ -49,7 +43,6 @@ resource "databricks_sql_endpoint" "this" {
lifecycle {
ignore_changes = [state, num_clusters]
}
depends_on = [databricks_sql_global_config.this]
}

resource "databricks_system_schema" "this" {
Expand Down

0 comments on commit 41772d5

Please sign in to comment.