Skip to content
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_connection resource #4494

Closed
dbarrundia-tiger opened this issue Feb 12, 2025 · 0 comments · Fixed by #4502
Closed

[ISSUE] Issue with databricks_connection resource #4494

dbarrundia-tiger opened this issue Feb 12, 2025 · 0 comments · Fixed by #4502

Comments

@dbarrundia-tiger
Copy link

Configuration

resource "databricks_connection" "connection" {
  name            = var.connection_name
  connection_type = var.connection_type
  options = {
    host     = var.host
    port     = var.post
    user     = var.user
    password = var.password
  }
}


resource "databricks_pipeline" "ingestion_gateway" {
  name     = "ingestion_gateway_"
  channel  = "PREVIEW"
  gateway_definition {
    connection_id           = local.connection_ids[each.key] #TODO: get the connection_id from the module, once Databricks terraform supports that databricks_connection.connection.connection_id
    gateway_storage_catalog = "default
    gateway_storage_schema  = "default"
    gateway_storage_name    = "ingestion_gateway_stg"
  }
  target     = "default"
  continuous = true
  catalog    = "default"
  cluster {
    apply_policy_default_values = false
    driver_node_type_id         = "r5.xlarge"
    node_type_id                = "m4.large"
    label                       = "default"
    num_workers                 = 1
  }

}

Expected Behavior

The databricks_connection should ideally return the connection_id

Actual Behavior

The databricks_connection does not return the connection_id, and instead returns <metastore_id>|<name>.

Steps to Reproduce

  1. Create a connection
  2. Create any other resource that needs this connection (i.e. databricks_pipeline in the example above)
  3. Try to give the connection_id to resource (2) above

Terraform and provider versions

latest

Is it a regression?

No

Debug Output

N/A

Important Factoids

N/A

Would you like to implement a fix?

N/A

@dbarrundia-tiger dbarrundia-tiger changed the title [ISSUE] Issue with databricks_XXX resource [ISSUE] Issue with databricks_connection resource Feb 12, 2025
alexott added a commit that referenced this issue Feb 13, 2025
Switch to Go SDK structs for `databricks_connection` resource.

Resolves #4494
github-merge-queue bot pushed a commit that referenced this issue Feb 21, 2025
…#4502)

## Changes
<!-- Summary of your changes that are easy to understand -->

Switch to Go SDK structs for `databricks_connection` resource.

Resolves #4494

## Tests
<!-- 
How is this tested? Please see the checklist below and also describe any
other relevant tests
-->

- [x] `make test` run locally
- [x] relevant change in `docs/` folder
- [ ] covered with integration tests in `internal/acceptance`
- [ ] using Go SDK
- [ ] using TF Plugin Framework
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant