Skip to content

Mark effective_file_event_queue as read-only in databricks_external_location#5507

Open
elenathfgs wants to merge 1 commit intodatabricks:mainfrom
elenathfgs:guosheng-feng/mark-effective-file-event-queue-readonly
Open

Mark effective_file_event_queue as read-only in databricks_external_location#5507
elenathfgs wants to merge 1 commit intodatabricks:mainfrom
elenathfgs:guosheng-feng/mark-effective-file-event-queue-readonly

Conversation

@elenathfgs
Copy link
Contributor

Changes

Mark the new effective_file_event_queue field as read-only in the databricks_external_location resource to prevent Terraform drift.

Background

The Unity Catalog backend now returns an effective_file_event_queue field on ExternalLocationInfo (an OUTPUT_ONLY field). This is the queue-level counterpart to the existing effective_enable_file_events field (handled in #5408). Without marking it read-only, Terraform would detect a diff between the API response (which includes the field) and the user's HCL config (which never specifies it).

Changes

  1. catalog/resource_external_location.go — Added SetReadOnly() for "effective_file_event_queue"
  2. catalog/resource_external_location_test.go — Added TestCreateExternalLocationWithEffectiveFileEventQueue that verifies the API returning a server-populated effective_file_event_queue with a managed SQS queue doesn't cause drift
  3. NEXT_CHANGELOG.md — Added bug fix entry

Note

This PR depends on a Go SDK update that picks up the new EffectiveFileEventQueue field from the Unity Catalog API spec (universe PR already merged). Once the SDK is bumped, the test will compile and pass.

Tests

  • TestCreateExternalLocationWithEffectiveFileEventQueue — mirrors the existing TestCreateExternalLocationWithEffectiveEnableFileEvents pattern
  • Blocked on SDK bump (will update go.mod/go.sum once the SDK release includes the field)

…l_location`

Prevents Terraform drift when the server returns an `effective_file_event_queue`
field that the user never specified in their HCL configuration.

This is the counterpart to the Universe-side change that adds the
`effective_file_event_queue` OUTPUT_ONLY field to ExternalLocationInfo.
@elenathfgs elenathfgs requested review from a team as code owners March 23, 2026 14:11
@elenathfgs elenathfgs requested review from simonfaltum and removed request for a team March 23, 2026 14:11
@github-actions
Copy link

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: 5507
  • Commit SHA: a2c591cf4511b4905f6bc15db14d703e20b72864

Checks will be approved automatically on success.

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.

2 participants