-
Notifications
You must be signed in to change notification settings - Fork 50
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
does not have attribute result.foo #4
Comments
Please fix this. It has cost me a lot of time. Thanks for your hard work! 😃 |
I reproduced this bug when using However using |
I don't know exactly when it works and when it doesn't, but I'm seeing |
Hi there. Apologies if this is long resolved but; For info I am also receiving this error when using PowerShell as an external data source on terraform v0.11.3, external provider v1.0.0. Strangely enough this issue only occurred after a flush of the local Happy it now works though, @aep thanks for preventing a headache! |
I think I figured out what's going on here. It will happen when the external provider is not run at plan time, which is caused by having a computed value as one of the inputs. You can see the full scenario in #19. It is working as intended per hashicorp/terraform#17034. The reader side just can't know the next level property exists since output is marked as |
Terraform v0.9.8
will not actually work
the correct usage appears to be
it would be great if the documentation mentioned that. Took me quite some hairpulling to figure that out, as everything i found googling appears to be using result.attr
The text was updated successfully, but these errors were encountered: