Skip to content

Conversation

@bgrams
Copy link
Contributor

@bgrams bgrams commented Jan 16, 2026

Changes

Only set the enabled request field when updating an NCC endpoint rule if it has been changed in the configuration. Including this for non-S3 endpoint rules results in a client error during apply.

This also includes a change to make the enabled field conflict with other attributes that imply the endpoint rule type (domain_names, group_id) in order to fail during the plan phase if we know that an error is going to occur.

Fixes #5306

Tests

Unit test added, existing unit tests updated, tested locally

  • 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

@bgrams bgrams requested review from a team as code owners January 16, 2026 22:57
@bgrams bgrams requested review from Divyansh-db and removed request for a team January 16, 2026 22:57
@bgrams bgrams force-pushed the fix-update-ncc-private-endpoint-rule branch from e4f43d6 to 242ab28 Compare January 23, 2026 06:19
@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: 5326
  • Commit SHA: 242ab28caea88c584ba48d27a6e3d0c9a107cf26

Checks will be approved automatically on success.

@tanmay-db tanmay-db self-requested a review January 23, 2026 15:12
@tanmay-db
Copy link
Contributor

Hi @bgrams, thanks for the fix, by local testing you meant you are able to update the resource on non-aws cloud with local TF build?

@bgrams
Copy link
Contributor Author

bgrams commented Jan 23, 2026

@tanmay-db yes a local build, using standard AWS VPCE rules (i.e. domain_names in the resource). I don't have access to an environment to test more comprehensively than this.

Here's the local config I'm testing with for reference:

provider "databricks" {
  profile = "account"
}

resource "databricks_mws_network_connectivity_config" "config" {
  name   = "test"
  region = "us-west-2"
}

resource "databricks_mws_ncc_private_endpoint_rule" "rule" {
  endpoint_service = "com.amazonaws.vpce.us-west-2.vpce-svc-xxxxxxxxxxxxxxxx"
  domain_names     = ["foo.bar"]

  network_connectivity_config_id = databricks_mws_network_connectivity_config.config.network_connectivity_config_id
}

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.

[ISSUE] with mws/resource_mws_ncc_private_endpoint_rule.go enable resource update for Azure

2 participants