terraform-provider-databricks
terraform-provider-databricks copied to clipboard
Cannot create user Issue with `databricks_user` resource because it already exists
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 applyon a target workspace - Run
terraform applyagain 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.