Skip to content

fix: MoveState for opentofu#453

Open
Kenneth (kenske) wants to merge 2 commits into
airbytehq:mainfrom
kenske:fix-movestate
Open

fix: MoveState for opentofu#453
Kenneth (kenske) wants to merge 2 commits into
airbytehq:mainfrom
kenske:fix-movestate

Conversation

@kenske

Copy link
Copy Markdown

Fixes #445

Copilot AI review requested due to automatic review settings May 19, 2026 22:09
@github-actions github-actions Bot added the community PRs from community contributors label May 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes OpenTofu state migrations for deprecated airbyte_source_* / airbyte_destination_* resources by recognizing OpenTofu’s legacy source provider address format (airbyte) during MoveState, in addition to fully-qualified registry addresses.

Changes:

  • Allow MoveState to run when req.SourceProviderAddress is exactly airbyte (OpenTofu legacy), not only when it ends with airbytehq/airbyte.
  • Apply the same provider-address acceptance logic to both source and destination state movers.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
internal/provider/source_resource_movestate.go Extends MoveState provider-address matching to accept airbyte for source resource migrations.
internal/provider/destination_resource_movestate.go Extends MoveState provider-address matching to accept airbyte for destination resource migrations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kenske Kenneth (kenske) changed the title Fix MoveState for opentofu fix: MoveState for opentofu May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community PRs from community contributors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't migrate from deprecated resources: Unable to Move Resource State

2 participants