Skip to content

fix: treat omitted remote_state_consumer_ids as an empty set during updates#2040

Open
ctrombley wants to merge 1 commit intomainfrom
TF-35311-terraform-provider-tfe-gh-issue-2000-removing-remote-state-consumer-ids-from-a-tfe-workspace-settings-resource-does-not-actually-remove-them
Open

fix: treat omitted remote_state_consumer_ids as an empty set during updates#2040
ctrombley wants to merge 1 commit intomainfrom
TF-35311-terraform-provider-tfe-gh-issue-2000-removing-remote-state-consumer-ids-from-a-tfe-workspace-settings-resource-does-not-actually-remove-them

Conversation

@ctrombley
Copy link
Copy Markdown
Collaborator

Description

This fix PR resolves #2000.

Testing plan

  1. Reproduce with a config similar to that provided in Removing remote_state_consumer_ids from a tfe_workspace_settings resource does not actually remove them #2000
  2. Ensure that with the fix in place, omitting remote_state_consumer_ids from a config that previously used it clears out the relationships successfully.

@ctrombley ctrombley self-assigned this Apr 21, 2026
@ctrombley ctrombley requested a review from a team as a code owner April 21, 2026 17:08
@ctrombley ctrombley force-pushed the TF-35311-terraform-provider-tfe-gh-issue-2000-removing-remote-state-consumer-ids-from-a-tfe-workspace-settings-resource-does-not-actually-remove-them branch from fadad64 to 6484e1b Compare April 21, 2026 20:14
@datadog-terraform-cloud-hashicorp
Copy link
Copy Markdown

datadog-terraform-cloud-hashicorp Bot commented Apr 21, 2026

⚠️ Tests

Fix all issues with Cursor

⚠️ Warnings

🧪 2 Tests failed

TestAccTFEWorkspaceDataSource_remoteStateConsumers from data_source_workspace_test.go   View in Datadog   (Fix with Cursor)
Step 1/3 error: After applying this test step, the non-refresh plan was not empty.
stdout:


Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

...
TestAccTFEWorkspaceSettingsRemoteState from resource_tfe_workspace_settings_test.go   View in Datadog   (Fix with Cursor)
Step 2/7 error: Error running apply: exit status 1

Error: Provider produced inconsistent result after apply

When applying changes to tfe_workspace_settings.foobar, provider
"provider[\"registry.terraform.io/hashicorp/tfe\"]" produced an unexpected
new value: .overwrites[0].agent_pool: was cty.False, but now cty.True.

This is a bug in the provider, which should be reported in the provider's own
issue tracker.
...

ℹ️ Info

No other issues found (see more)

❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 6484e1b | Docs | Give us feedback!

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.

Removing remote_state_consumer_ids from a tfe_workspace_settings resource does not actually remove them

1 participant