I am trying to assign my databricks_metastore on terraform and I get the following error back as an output `Error: cannot create metastore assignment: Workspace is not in the same region as metastore. Workspace region: Unknown, Metastore region: us-east-1`
Snippet
```
resource "databricks_metastore" "metastore" {
provider = databricks.created_workspace
name = "root-metastore"
storage_root = "s3://${aws_s3_bucket.databricks_bucket.id}/metastore"
force_destroy = true
}
resource "databricks_metastore_data_access" "this" {
provider = databricks.created_workspace
metastore_id = databricks_metastore.metastore.id
name = aws_iam_role.databricks_role.name
aws_iam_role { role_arn = aws_iam_role.databricks_role.arn }
depends_on = [databricks_metastore_assignment.this]
is_default = true
}
resource "databricks_metastore_assignment" "this" {
provider = databricks.created_workspace
metastore_id = databricks_metastore.metastore.id
workspace_id = var.default_metastore_workspace_id
depends_on = [databricks_metastore.metastore]
}
```
As you can see here there's definitely a value set for databricks_mws_workspaces
```
resource "databricks_mws_workspaces" "this" {
depends_on = [databricks_mws_networks.this]
provider = databricks.mws
account_id = var.databricks_account_id
workspace_name = var.prefix
aws_region = var.region
credentials_id = databricks_mws_credentials.this.credentials_id
storage_configuration_id = databricks_mws_storage_configurations.this.storage_configuration_id
network_id = databricks_mws_networks.this.network_id
token {}
}
```
terraform.tfvars - aws_region = "us-east-1"
While checking the UI it does state both workspace and metastore are both us-east-1 yet this issue still occurs.
I can set it manually but would like to automate it using terraform.