Skip to content

[Fix] List all workspace_id sources in unified-provider error message#5764

Draft
tanmay-db wants to merge 1 commit into
mainfrom
spog-wsid-error-sources
Draft

[Fix] List all workspace_id sources in unified-provider error message#5764
tanmay-db wants to merge 1 commit into
mainfrom
spog-wsid-error-sources

Conversation

@tanmay-db

Copy link
Copy Markdown
Contributor

On a unified (SPOG) host, a workspace-level resource needs a workspace_id resolved from one of: the resource's provider_config block, the provider's workspace_id attribute, the configured profile, or the DATABRICKS_WORKSPACE_ID environment variable. The "requires a workspace_id" errors only named the first two sources, so users with a profile- or env-based setup did not know where to look. Both copies of the message (the client-side resolver and the plan-time CustomizeDiff guard) now enumerate all four sources in lookup order.

Co-authored-by: Isaac

Changes

Tests

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • using Go SDK
  • using TF Plugin Framework
  • has entry in NEXT_CHANGELOG.md file

On a unified (SPOG) host, a workspace-level resource needs a workspace_id
resolved from one of: the resource's provider_config block, the provider's
workspace_id attribute, the configured profile, or the
DATABRICKS_WORKSPACE_ID environment variable. The "requires a workspace_id"
errors only named the first two sources, so users with a profile- or
env-based setup did not know where to look. Both copies of the message (the
client-side resolver and the plan-time CustomizeDiff guard) now enumerate all
four sources in lookup order.

Co-authored-by: Isaac
@tanmay-db tanmay-db temporarily deployed to test-trigger-is May 29, 2026 09:09 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/terraform

Inputs:

  • PR number: 5764
  • Commit SHA: 9d0ce2def7b0e5a7a538531ca6913a8603f67daa

Checks will be approved automatically on success.

@tanmay-db tanmay-db temporarily deployed to test-trigger-is May 29, 2026 09:11 — with GitHub Actions Inactive
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

Successfully merging this pull request may close these issues.

1 participant