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

Cannot create user Issue with `databricks_user` resource because it already exists

Open rohitnijhawan opened this issue 3 years ago • 0 comments
trafficstars

Configuration

# Copy-paste your Terraform configuration here
resource "databricks_user" "data_lake" {
     user_name = "[email protected]"
}

Expected Behavior

Ignore or re-create user from SCIM or any other API

Actual Behavior

Error message issued Error: cannot create user: User with username [email protected] already exists.

Steps to Reproduce

  • Run the terraform exporter with -services=user
  • Use the output to run terraform apply on a target workspace
  • Run terraform apply again on a target workspace

Terraform and provider versions

Tested with 1.3.0

Important Factoids

The databricks_user and databricks_service_principal resources have a force flag which probably should be set to true by default.

rohitnijhawan avatar Sep 21 '22 03:09 rohitnijhawan