Comments (5)
@tiagoshin, can you provide sample values for all variables? Also, your TF template doesn't have any value for workload_type
, workload_size
, etc.
from terraform-provider-databricks.
Sure, the variables are like:
- var.environment = "dev"
- var.service = "service-name"
- var.databricks_scale_to_zero_enabled = "true"
- var.databricks_min_provisioned_throughput = 3600
- var.databricks_max_provisioned_throughput = 7200
Also, your TF template doesn't have any value for workload_type, workload_size, etc.
That's the point! The new Databricks model serving model is not based on workload size and type. For e.g., we cannot even define them on UI. Instead, we use min_provisioned_throughput
and max_provisioned_throughput
, so the hardware is assigned by Databricks.
So, if I'm not defining those values, why does Terraform want to change them?
from terraform-provider-databricks.
Can you attach logs as per first section of troubleshooting guide?
Regarding workload_type
and workload_size
- it looks like they are set on the backend, so they are populated in the TF state, and when apply happens, then TF figures out that they aren't set, and tries to reset them. To avoid resetting of that values they need to be correctly marked in the code as computed
. Or they should be not populated by the backend...
from terraform-provider-databricks.
@alexott How do we mark them as computed
?
from terraform-provider-databricks.
To test I also tried defining workload_type
and workload_size
but terraform is still wanting to change the scale_to_zero_enabled
flag even tho it was previously applied initially:
~ resource "databricks_model_serving" "chat_model" {
id = "name of the resource"
name = "name of the resource"
# (1 unchanged attribute hidden)
~ config {
~ served_entities {
name = "name of the resource"
~ scale_to_zero_enabled = false -> true
# (7 unchanged attributes hidden)
}
# (1 unchanged block hidden)
}
}
This also resulted in the same error as above
from terraform-provider-databricks.
Related Issues (20)
- [ISSUE] Issue with `Catalog/Schema` resource
- [FEATURE] Support network connectivity configurations for Azure Databricks workspaces HOT 1
- [DOC] mws_network_connectivity_config doesn't support Azure Databricks accounts
- [DOC] databricks_mws_network_connectivity_config wrong resource attribute syntax
- Terraform Plan failure when I use the exporter HOT 2
- [ISSUE] Issue with case sensitive group names in `databricks_group` resource
- [ISSUE] Issue with `databricks_cluster` resource - size not updating on Azure
- [ISSUE] Issue with `databricks_cluster` resource HOT 14
- [ISSUE] cannot apply `table_update` trigger on `databricks_job` resource
- [DOC] Deprecated properties in Private Link Workspace Standard HOT 1
- [DOC] Possibly unnecessary azurerm_private_endpoint.front_pe in azure-private-link-workspace-standard HOT 1
- [ISSUE] Issue with `databricks_sql_table` resource. The "nullable" property is ignored in the apply.
- [FEATURE] Change Ownership of Clusters
- TF Plan failure HOT 2
- [ISSUE] Issue with `databricks_cluster_policy` resource. Two different type of libraries doesn't get installed in one go
- [FEATURE] Data resource for `databricks_mws_network_connectivity_config` HOT 2
- [ISSUE] Pinned Clusters keep showing as unpinned on subsequent runs.
- [ISSUE] `databricks_external_location` incorrectly propagates its `url` attribute
- [ISSUE] `databricks_permission_assignment` doesn't admit empty `permissions` HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-databricks.