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

Not compatible with Terraform v0.12 and the new state pattern #113

Closed
pitthecat opened this issue May 23, 2019 · 4 comments
Closed

Not compatible with Terraform v0.12 and the new state pattern #113

pitthecat opened this issue May 23, 2019 · 4 comments

Comments

@pitthecat
Copy link

pitthecat commented May 23, 2019

Hi there,

the Terraform v0.12 update broke terraform-inventory. It can no longer read or interprete the new state file pattern.

Error Message:
Usage: terraform-inventory [options] path
path: this is either a path to a state file or a folder from which terraform commands are valid

With best regards

@pitthecat pitthecat changed the title Not compatible with the Terraform v0.12 and the new state pattern Not compatible with Terraform v0.12 and the new state pattern May 23, 2019
@adammck
Copy link
Owner

adammck commented May 23, 2019

I'm probably not going to get to this any time soon, because I'm busy with other things. Pull requests to fix this would be greatly appreciated. Per the changelog it looks like we ought to be running terraform show -json to fetch the state in JSON format now, rather than reading the file directly.

@AndiDog
Copy link
Contributor

AndiDog commented May 28, 2019

I'm currently actively working on this since yesterday afternoon, using @adammck's above suggestion of using terraform show -json and trying to stay compatible with both versions (thanks to unit tests 👍).

@astubbs
Copy link

astubbs commented Jul 16, 2019

Fixed in #114 - check out that branch and try it - works for me.

@adammck adammck closed this as completed Aug 7, 2019
@adammck
Copy link
Owner

adammck commented Aug 7, 2019

Fixed by #114.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants