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

cli: Fix state migration remote version check #27545

Merged

Commits on Jan 19, 2021

  1. cli: Fix state migration remote version check

    Previously the state migration process was using the fallback strict
    error check when migrating to or from a Terraform Cloud workspace. This
    resulted in an error when running init if the local and remote Terraform
    versions did not exactly match.
    
    This was excessively strict. When migrating from a remote Terraform
    Cloud workspace to local state, there is no need for a version check at
    all, as we cannot break the Terraform Cloud workspace. When migrating
    to Terraform Cloud, we should use the more forgiving check, rather than
    the strict equality.
    
    This commit fixes both of these cases accordingly, and allows migrating
    state to and from Terraform Cloud remote workspaces without errors.
    alisdair committed Jan 19, 2021
    Configuration menu
    Copy the full SHA
    212a97c View commit details
    Browse the repository at this point in the history