Skip to content

feat: add resource_metadata field to all resources (closes #662)#671

Open
trouze wants to merge 2 commits into
mainfrom
feat/issue-662-resource-metadata
Open

feat: add resource_metadata field to all resources (closes #662)#671
trouze wants to merge 2 commits into
mainfrom
feat/issue-662-resource-metadata

Conversation

@trouze
Copy link
Copy Markdown
Contributor

@trouze trouze commented Apr 9, 2026

Summary

  • Adds optional resource_metadata attribute of type Dynamic to every resource schema and ResourceModel struct (56 resource packages)
  • Field is persisted in Terraform state only — not sent to the API
  • Intended for account migration tooling to track identity mappings between old and new resource IDs across tenancies
  • Regenerates docs for all affected resources

Closes #662

🤖 Generated with Claude Code

… models (closes #662)

Adds optional resource_metadata attribute of type Dynamic to every resource
schema and ResourceModel struct. The field is persisted in Terraform state only
and is not sent to the API. Intended for account migration tooling to track
identity mappings between old and new resource IDs across tenancies.

Regenerates docs for all affected resources.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@trouze trouze requested a review from a team as a code owner April 9, 2026 20:43
The datasource reuses GlobalConnectionResourceModel which now has
ResourceMetadata, but the datasource schema was missing the field.
This caused a schema/model mismatch that silently zeroed state.ID,
resulting in a connections/0/ 404 on every datasource read.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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.

feat: add resource_metadata field to all resources (account migration support)

1 participant