Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

statefile: Ignore unknown check results on decode #355

Closed
roni-frantchi opened this issue Sep 8, 2023 · 0 comments · Fixed by #374
Closed

statefile: Ignore unknown check results on decode #355

roni-frantchi opened this issue Sep 8, 2023 · 0 comments · Fixed by #374
Assignees
Labels
backport An issue/feature implemented in legacy HTF

Comments

@roni-frantchi
Copy link
Collaborator

Backport issue resolved in legacy Terraform 1.5.7.

Terraform 1.5 introduced a new check result kind, which causes a decode failure when read by Terraform 1.3 and 1.4. This means that a 1.5+ state file cannot be read by the terraform_remote_state data source in 1.3 or 1.4 series.

Aborting state decode at this point isn't strictly necessary, as we don't stand to lose important data by failing to round-trip these check results. Instead we can ignore those check results, allowing decode to elide them from the state.

This has no negative effect on the remote state data source, which only exposes root module outputs anyway.

Link to PR under 1.5.x MPL: hashicorp/terraform#33818

@roni-frantchi roni-frantchi added the backport An issue/feature implemented in legacy HTF label Sep 8, 2023
@roni-frantchi roni-frantchi added this to the First Alpha Release milestone Sep 8, 2023
@eranelbaz eranelbaz self-assigned this Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport An issue/feature implemented in legacy HTF
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants