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

Add error types for state/planfile version incompatibility #58

Open
kmoe opened this issue Aug 20, 2020 · 0 comments
Open

Add error types for state/planfile version incompatibility #58

kmoe opened this issue Aug 20, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kmoe
Copy link
Member

kmoe commented Aug 20, 2020

There is a class of CLI errors of the form:

            Error: Invalid plan file
            
            Failed to read plan from plan file: plan file was created by Terraform
            0.12.29, but this is 0.13.0; plan files cannot be transferred between
            different Terraform versions.

Handle all these cases with well-known error types:

The only "format_version" presently known by terraform-json and this library is 0.1. Add at least an e2e test that will flag if another version is encountered. There's no need to error at runtime unless and until the Terraform CLI does so.

@kmoe kmoe self-assigned this Aug 20, 2020
@radeksimko radeksimko added the enhancement New feature or request label Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants