terraform-provider-databricks icon indicating copy to clipboard operation
terraform-provider-databricks copied to clipboard

[ISSUE] Issue with `databricks_share` resource, owner assignment not working

Open joe-sharman opened this issue 1 year ago • 1 comments

Configuration

resource "databricks_share" "delta_share" {
  provider = databricks.workspace

  name  = var.delta_share_name
  owner = var.owner_name

}

var.owner_name is set to the name of our workspace admin group

Expected Behavior

When terraform creates a delta share, the owner of the share should be var.owner_name.

Actual Behavior

The owner is set to our the email/username of our databricks admin.

Steps to Reproduce

Terraform and provider versions

databricks "1.39.0"

Is it a regression?

No, this has never worked.

Debug Output

Important Factoids

Would you like to implement a fix?

joe-sharman avatar Apr 17 '24 11:04 joe-sharman

I have the same issue. The plan is executed correctly, however on the creation of the resource the owner is set to the entity that the terraform provider is configured with. On the second run the assignment is corrected.

da-six avatar Oct 16 '24 10:10 da-six