Hi I'm having trouble creating a databricks_mws_vpc_endpoint with Terraform.
I already created 2 Private Service Connect (PSC) and I'm trying to create the vpc endpoint for Databricks but I'm getting this error:
BAD_REQUEST: Failed to get oauth access token. Please retry after logout and login again.
This is my terraform:
provider "databricks" {
alias = "accounts"
profile = "DEFAULT"
}
resource "databricks_mws_vpc_endpoint" "backend_rest_vpce" {
provider = databricks.accounts
account_id = var.databricks_account_id
vpc_endpoint_name = "vpce-backend-rest-ven"
gcp_vpc_endpoint_info {
project_id = var.network_project_id
psc_endpoint_name = var.backend_rest_psce
endpoint_region = google_compute_subnetwork.network-with-private-secondary-ip-ranges.region
}
}
I Configure my credentials inside the .databrickscfg and I'm using a service principal to create databricks resources. Also I tested my credentials with the databricks CLI and the work perfectly.
If I created manually they are working fine as well.
Thanks