-
Notifications
You must be signed in to change notification settings - Fork 384
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
[ISSUE] Issue with databricks_library
resource when cluster is automatically deleted
#3679
Comments
I can confirm this occurs with version 1.48.2 after I manually delete a cluster (that was also created manually, but had libraries added by Terraform). So to reproduce this:
|
alexott
added a commit
that referenced
this issue
Aug 15, 2024
We now don't return an error when reading a library that belongs to the cluster deleted outside of the Terraform. Resolves #3679
5 tasks
alexott
added a commit
that referenced
this issue
Aug 15, 2024
We now don't return an error when reading a library that belongs to the cluster deleted outside of the Terraform. Resolves #3679
github-merge-queue bot
pushed a commit
that referenced
this issue
Sep 3, 2024
## Changes <!-- Summary of your changes that are easy to understand --> We now don't return an error when reading a library that belongs to the cluster deleted outside of the Terraform. Resolves #3679 ## 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` - [ ] relevant acceptance tests are passing - [ ] using Go SDK
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Configuration
Expected Behavior
When a cluster is deleted automatically after being terminated for more than 30 days (databricks default behaviour) the next run of a terraform plan should recreate the cluster and all of the libraries attached
Actual Behavior
The plan does detect that the cluster and the permissions were deleted and need to be recreated but fails with the
databricks_library
resource because the old cluster no longer exists:Steps to Reproduce
databricks_cluster
resource and add libraries to it using thedatabricks_library
resourceTerraform and provider versions
Is it a regression?
Yes, from
<= v1.39
this worked correctly, i.e. all the resources (cluster, permissions and libraries) were recreated after they were permanently deletedDebug Output
NA
Important Factoids
NA
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: