Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example aws-workspace-with-firewall fails creation unless Token is removed #132

Open
caldempsey opened this issue May 23, 2024 · 0 comments

Comments

@caldempsey
Copy link

Using a provider of

provider "databricks" {
  profile = "ACCOUNT-<ID>"
} 

This doesn't create:

resource "databricks_mws_workspaces" "this" {
  provider =       databricks
  account_id     = var.databricks_account_id
  aws_region     = var.region
  workspace_name = local.prefix

  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

  
  depends_on = [ time_sleep.wait, databricks_mws_storage_configurations.this, databricks_mws_credentials.this, databricks_mws_networks.this ]

  token {
    comment = "Terraform"
  }
}

Unless the token block is removed (which requires you to manually destroy the workspace and prune the terraform state first). The error is:

default auth: cannot configure default credentials

Logging my findings. To reproduce try to set this up using the modern OAuth login, latest version of Databricks.

Happy hunting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant