terraform-inventory
terraform-inventory copied to clipboard
Cannot get --list to work
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.
I'm having the same issue on Terraform v0.12.2.
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..
Oh - it's probably https://github.com/adammck/terraform-inventory/issues/113
Fixed in https://github.com/adammck/terraform-inventory/pull/114 - check out that branch and try it - works for me.