terraform-inventory icon indicating copy to clipboard operation
terraform-inventory copied to clipboard

Cannot get --list to work

Open drew9781 opened this issue 6 years ago • 4 comments
trafficstars

I'm struggling here. I'm not sure if I'm doing something wrong, but I can't get the command to work at all. I'm using this with terraform 0.12.0

aenglema@ubuntu_template:~/terraform$ terraform-inventory --list
Usage: terraform-inventory [options] path
path: this is either a path to a state file or a folder from which `terraform commands` are valid

My terraform.tfstate file is in the same directory. Terraform show -json works.

drew9781 avatar Jul 08 '19 23:07 drew9781

I'm having the same issue on Terraform v0.12.2.

systembell avatar Jul 14 '19 22:07 systembell

Same issue. There's a bug in the code logic - the error message is incorrect it would seem. But my go-fu is not strong enough to read it..

astubbs avatar Jul 16 '19 16:07 astubbs

Oh - it's probably https://github.com/adammck/terraform-inventory/issues/113

astubbs avatar Jul 16 '19 16:07 astubbs

Fixed in https://github.com/adammck/terraform-inventory/pull/114 - check out that branch and try it - works for me.

astubbs avatar Jul 16 '19 16:07 astubbs