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 #4225

Open
gszecsenyi opened this issue Nov 14, 2024 · 3 comments
Open

[ISSUE] Issue with databricks_volume resource #4225

gszecsenyi opened this issue Nov 14, 2024 · 3 comments

Comments

@gszecsenyi
Copy link

gszecsenyi commented Nov 14, 2024

A played a bit with terraform yesterday evening, and I have an issue, what I cannot solve:

Configuration

Terraform databricks provider version is 1.51.0

Expected Behavior

I would like to create a MANAGED volume type

Actual Behavior

In the plan there is an EXTERNAL volume_type

Steps to Reproduce

this is the configuration:

databricks_workloads_volumes = [
    {
      storage_directory_name = "leaf"
      schema_ref             = "schema_ref"
      volume_type            = "MANAGED"
    }
    ]
this is the output:
+ resource "databricks_volume" "volumes" {
      + catalog_name     = "catalog_name"
      + comment          = "volume connected to abfss://[email protected]/leaf"
      + id               = (known after apply)
      + name             = "leaf"
      + owner            = (known after apply)
      + schema_name      = "schema_name"
      + storage_location = "abfss://[email protected]/leaf"
      + volume_path      = (known after apply)
      + volume_type      = "EXTERNAL"
    }

Terraform and provider versions

1.51.0

@alexott
Copy link
Contributor

alexott commented Nov 14, 2024

If you specify storage_location then the volume is external, not managed

@gszecsenyi
Copy link
Author

but I did not specified storage location as you see in my request:

databricks_workloads_volumes = [
{
storage_directory_name = "leaf"
schema_ref = "schema_ref"
volume_type = "MANAGED"
}
]

@alexott
Copy link
Contributor

alexott commented Nov 14, 2024

this is incomplete code - show the code where databricks_volume resource is defined

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