Skip to content

Conversation

@adrianburusdbt
Copy link
Contributor

Summary
Adds proper resource-not-found error handling to dbtcloud_semantic_layer_credential_service_token_mapping resource's Read() function, consistent with other semantic layer resources fixed in #597.

Changes
When the API returns "resource-not-found", the resource is now gracefully removed from state with a warning instead of failing with an error
This aligns with standard Terraform patterns for handling resources deleted out-of-band

@adrianburusdbt adrianburusdbt requested a review from a team as a code owner January 14, 2026 15:05
@adrianburusdbt adrianburusdbt linked an issue Jan 14, 2026 that may be closed by this pull request
Copy link
Contributor

@victorasu victorasu left a comment

Choose a reason for hiding this comment

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

I think we should have this handling on all other resources too.

@adrianburusdbt adrianburusdbt merged commit 14dbaa6 into main Jan 15, 2026
7 checks passed
@adrianburusdbt adrianburusdbt deleted the issue-516-2 branch January 15, 2026 16:21
@adrianburusdbt adrianburusdbt linked an issue Jan 16, 2026 that may be closed by this pull request
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.

Semantic layer resources have inconsistent behavior Undeployed dbtcloud_semantic_layer_configuration resource

3 participants