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_volume resource #4261

Open
owl2 opened this issue Nov 21, 2024 · 1 comment
Open

[ISSUE] Issue with databricks_volume resource #4261

owl2 opened this issue Nov 21, 2024 · 1 comment

Comments

@owl2
Copy link

owl2 commented Nov 21, 2024

Configuration

terraform {
  backend "azurerm" {
    resource_group_name  = "xxx"
    storage_account_name = "xxx"
    container_name       = "xxx"
    key                  = "xxx"
  }
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "4.2.0"
    }
    databricks = {
      source  = "databricks/databricks"
      version = "1.56.0"
    }
  }
}

Expected Behavior

A deployment of databricks_volume resource without error.

Actual Behavior

image

Steps to Reproduce

resource "databricks_external_location" "external" {
  depends_on = [ azurerm_role_assignment.external_sources ]
  
  # name = "dbx-external-sources"
  name = var.environment == "staging" || var.environment == "production" ? "xxx-${var.environment}" : "xxx"
  url = format("abfss://%s@%s.dfs.core.windows.net",
    azurerm_storage_container.external.name,
    azurerm_storage_account.external_sources.name)

  credential_name = databricks_storage_credential.external_sources.id
  owner = databricks_group.uc_admins.display_name
  comment         = "External Location"
}

resource "databricks_volume" "this" {
  name                  = "external_sources"
  catalog_name     = "xxx"
  schema_name     = databricks_schema.external_sources.name
  volume_type       = "EXTERNAL"
  storage_location = databricks_external_location.external.url
  comment            = "This volume is managed by terraform"
}

Terraform and provider versions

Is it a regression?

I don't think so.

Important Factoids

This happened twice, but restarting fixed it. I create this Issue just in case. Tell me if it's interesting or not.

Would you like to implement a fix?

Why not...

@owl2 owl2 changed the title [ISSUE] Issue with databricks_XXX resource [ISSUE] Issue with databricks_volume resource Nov 21, 2024
@alexott
Copy link
Contributor

alexott commented Nov 21, 2024

Add trailing / to url value...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants