-
Notifications
You must be signed in to change notification settings - Fork 323
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
Doesn't find any hosts with remote state #66
Comments
Oh dear, #60 must have broken your workflow. Which version of Terraform are you using? My understanding is that newer versions don't use that path for remote state any more. (But of course, some people will still be expecting that, so we should probably fall back to it.) Does it work if you specify the path to the state file?
|
Thanks for the fast response! Also your suggested command doesn't show any hosts in the output. For now I've worked around the problem by wrapping terraform-inventory in a shell script and manually writing the output of |
this is reproducible for me too, the state returned with |
It works for me if I do a |
same problem here $ terraform --version
$ terraform-inventory --version with remote tfstate in S3 |
I'm also working around this by doing:
|
@adammck is anyone working on this? Are you open for PRs? |
@danihodovic I'm not actively working on this, but I'm happy to review and merge PRs. I expect that many people would appreciate this being fixed. |
Just tried this with the google/gcs backend on revision 3a1f433 and still only getting |
Same for me with google/gcs backend and Terraform 0.11.13 |
For anyone else continuing to have this issue make sure you delete your local provider plugins in either |
I suppose |
The merge of #41 supposedly enables remote state.
However this doesn't actually seems to be true.
I use s3 with the following configuration:
My
.terraform/terraform.tfstate
contains:Yet
terraform-inventory -list
results in:{"all":{"hosts":null,"vars":{}}}
The text was updated successfully, but these errors were encountered: