Skip to content

Commit 45e8ca0

Browse files
authored
[Exporter] Fix incorrect reference to model serving endpoint (#4588)
## Changes <!-- Summary of your changes that are easy to understand --> Also, remove reference to unsupported resources in `databricks_mount`. ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [x] `make test` run locally - [ ] relevant change in `docs/` folder - [ ] covered with integration tests in `internal/acceptance` - [ ] using Go SDK - [ ] using TF Plugin Framework
1 parent b5beaf2 commit 45e8ca0

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

NEXT_CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
### Exporter
2020

2121
* Add support for special selectors in `-listing` and `-services` [#4573](https://github.com/databricks/terraform-provider-databricks/pull/4573)
22+
* Fix incorrect reference to model serving endpoint [#4588](https://github.com/databricks/terraform-provider-databricks/pull/4588)
2223
* Allow the selective export of `databricks_mws_permission_assignment`, and change its service name to `idfed` instead of `access` ([#4571](https://github.com/databricks/terraform-provider-databricks/pull/4571))
2324
* Fix panic caused by incorrect values in the cluster policies ([#4585](https://github.com/databricks/terraform-provider-databricks/pull/4585))
2425

exporter/importables.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ var resourcesMap map[string]importable = map[string]importable{
848848
{Path: "experiment_id", Resource: "databricks_mlflow_experiment"},
849849
{Path: "repo_id", Resource: "databricks_repo"},
850850
{Path: "vector_search_endpoint_id", Resource: "databricks_vector_search_endpoint", Match: "endpoint_id"},
851-
{Path: "serving_endpoint_id", Resource: "databricks_serving_endpoint", Match: "serving_endpoint_id"},
851+
{Path: "serving_endpoint_id", Resource: "databricks_model_serving", Match: "serving_endpoint_id"},
852852
// TODO: can we fill _path component for it, and then match on user/SP home instead?
853853
{Path: "directory_id", Resource: "databricks_directory", Match: "object_id"},
854854
{Path: "notebook_id", Resource: "databricks_notebook", Match: "object_id"},
@@ -1039,12 +1039,8 @@ var resourcesMap map[string]importable = map[string]importable{
10391039
return nil
10401040
},
10411041
Depends: []reference{
1042-
{Path: "s3_bucket_name", Resource: "aws_s3_bucket", Match: "bucket"}, // this should be changed somehow & avoid clashes with GCS bucket_name
10431042
{Path: "instance_profile", Resource: "databricks_instance_profile"},
10441043
{Path: "cluster_id", Resource: "databricks_cluster"},
1045-
{Path: "storage_account_name", Resource: "azurerm_storage_account", Match: "name"}, // similarly for WASBS vs ABFSS
1046-
{Path: "container_name", Resource: "azurerm_storage_container", Match: "name"},
1047-
{Path: "storage_resource_name", Resource: "azurerm_data_lake_store", Match: "name"},
10481044
},
10491045
},
10501046
"databricks_global_init_script": {

0 commit comments

Comments
 (0)