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] databricks_storage_credential.id/databricks_metastore.storage_root_credential_id inconsistency #3538

Closed
natbaker opened this issue May 2, 2024 · 0 comments · Fixed by #3636

Comments

@natbaker
Copy link

natbaker commented May 2, 2024

Configuration

resource "databricks_storage_credential" "metastore" {
  name = "metastore_root"
  databricks_gcp_service_account {
    email = ""
  }
  provider = databricks.workspace
}

resource "databricks_metastore" "this" {
  name = "metastore_name"
  storage_root = "gs://somebucket/metastore"
  region = "us-central1"
  storage_root_credential_id = databricks.storage_credential.metastore.id
 provider = databricks.account
}

Expected Behavior

A storage credential is created, and the id is passed as the root credential id for the metastore

Actual Behavior

UUID parsing error. databricks.storage_credential.metastore.id returns the name, but databricks_metastore.storage_root_credential_id requires the credential's UUID. I think either the UUID should be returned in another property, storage_root_credential_id accepts name instead, or add a is_root attribute to databricks_storage_credential when specifying metastore_id to use instead of databricks_metastore.storage_root_credential_id.

Steps to Reproduce

  1. terraform apply

Terraform and provider versions

Terraform v1.7.1
on darwin_amd64
+ provider registry.terraform.io/databricks/databricks v1.41.0
+ provider registry.terraform.io/hashicorp/google v5.27.0

Is it a regression?

No

Debug Output

Important Factoids

Account is in GCP

Would you like to implement a fix?

alexott added a commit that referenced this issue Jun 3, 2024
…tial` resource

This attribute exposes UUID of the storage credential.

Fixes #3538
github-merge-queue bot pushed a commit that referenced this issue Jun 3, 2024
…tial` resource (#3636)

This attribute exposes UUID of the storage credential.

Fixes #3538
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