Skip to content

Bump Terraform provider to v1.113.0#4991

Merged
simonfaltum merged 4 commits intomainfrom
simonfaltum/bump-tf-provider-1.113.0
Apr 16, 2026
Merged

Bump Terraform provider to v1.113.0#4991
simonfaltum merged 4 commits intomainfrom
simonfaltum/bump-tf-provider-1.113.0

Conversation

@simonfaltum
Copy link
Copy Markdown
Member

Why

Keep the CLI's Terraform schema in sync with the latest provider release (v1.113.0).

Changes

Bumps the provider version from 1.111.0 to 1.113.0 and regenerates the Go schema types using go run . in bundle/internal/tf/codegen.

New data sources and resources added:

  • environments_default_workspace_base_environment
  • environments_workspace_base_environment(s)
  • postgres_catalog
  • postgres_role(s)
  • postgres_synced_table

Test plan

  • make checks passes
  • Existing unit/acceptance tests pass in CI

@simonfaltum simonfaltum requested a review from pietern April 16, 2026 13:29
simonfaltum and others added 3 commits April 16, 2026 15:43
Align mock server workspace_id (470123456789500) with org-id header
(900800700600) to fix workspace_id validation errors in app tests.
The v1.113.0 provider validates that these match for app resources.

Also regenerates test outputs for:
- Version string updates in User-Agent headers
- Extra /.well-known/databricks-config requests from the provider
- embed_credentials null -> false in dashboard state
- update_mask change in postgres_projects

Co-authored-by: Isaac
},
"method": "GET",
"path": "/.well-known/databricks-config"
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this match the # of command invocations?

Just to gut check that we're not doing 1 of these per TF request.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's per terraform invocation, not per API request. The provider calls /.well-known/databricks-config during initialization, so it happens roughly twice per terraform operation (plan, apply). Deploy runs plan+apply so you see ~4 provider calls, destroy similarly gets ~6. The single calls with cli/... user-agent are from the CLI SDK's own config resolution. I think there might be an effort looking into adding caching for this, but we'd have to ask @tanmay-db

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current TF Release (v1.113.0) doesn't directly rely on this end point. This is called during Host metadata resolution in Go SDK and that is bumped in TF so I am guessing this is why this is needed here (not sure)? In very near future we plan to use this in TF

The plan is to add this in HostType() in Go SDK so

  • Go SDK would call this endpoint store it in the config
  • TF will check if this value is there in config

DefaultCatalogName: "hive_metastore",
MetastoreId: "120efa64-9b68-46ba-be38-f319458430d2",
WorkspaceId: 470123456789500,
WorkspaceId: 900800700600,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the previous one broken?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have added the .well-known/databricks-config as validation in terraform now, so it must match the expectation there

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simonfaltum what was the failure on the previous workspaceID?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The provider gets its workspace ID from X-Databricks-Org-Id header (900800700600), but /.well-known/databricks-config was returning 470123456789500. The mismatch caused all app tests to fail with "workspace_id mismatch: provider is configured for workspace 900800700600 but got 470123456789500 in provider_config".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For context on why might have happened, we have recently launched support for default workspace id in apps: databricks/terraform-provider-databricks#5542. The call terraform is making for validation is scim/me and not .well-known.

The scim/me returns this workspace id and hence the conflict

	server.Handle("GET", "/api/2.0/preview/scim/v2/Me", func(req Request) any {
		return Response{
			Headers: map[string][]string{"X-Databricks-Org-Id": {"900800700600"}},
			Body:    req.Workspace.CurrentUser(),
		}
	})

cc: @simonfaltum @pietern @Divyansh-db

@@ -1,3 +1,5 @@
RecordRequests = false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not relevant for this case, I guess?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TF provider v1.113.0 makes extra /.well-known/databricks-config calls that the direct engine doesn't. Since both variants share out.requests.txt, the terraform variant now produces more requests than direct, causing a divergence. Disabling recording for this test sidesteps it since the test only cares about the plan output anyway.

@simonfaltum simonfaltum enabled auto-merge April 16, 2026 15:15
@simonfaltum simonfaltum added this pull request to the merge queue Apr 16, 2026
Merged via the queue into main with commit fd3403c Apr 16, 2026
36 checks passed
@simonfaltum simonfaltum deleted the simonfaltum/bump-tf-provider-1.113.0 branch April 16, 2026 15:32
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.

3 participants