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 #33818

Merged
merged 1 commit into from
Sep 6, 2023

Commits on Sep 6, 2023

  1. statefile: Ignore unknown check results on decode

    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.
    alisdair committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    f2f6a5c View commit details
    Browse the repository at this point in the history