-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
terraform 0.8.2-0.8.4 provider inheritance is failing for deeply nested modules #11282
Comments
Thanks for pointing this out. This will actually be fixed by #11373 and #11341. The issue is that its fixed in the "new" graphs but validate, input, refresh are still using the "legacy" graph construction which had this issue. To verify this, I also pushed a test case on |
This should work now on master. |
For the record, I am currently seeing this issue with a set of AWS resources that works with 0.8.1 but gives the "No valid credentials" message on versions 0.8.2-0.8.5. My credentials were correct in this case.
Hopefully the newer 0.9.0 won't see this issue. |
@ronaldtse AHH! Every time we fix an issue related to this we add new tests, but never remove old ones, so we shouldn't be introducing regressions. These must be edge cases we're not testing for [obviously]. If you can get a simplified repro for us to run please open a new issue and I'll MAKE SURE its resolved. :) (until the next untested case is found shakes fist in air) |
@mitchellh Didn't quite have the time to work on the repro, but I'm happy to report back that 0.8.6 has resolved this issue. Thank you for the fix! 👍 |
Great! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
In terraform 0.8.2 through 0.8.4, the bug fixed in #6186 seems to have resurfaced, which is impacting at least the
aws
and thedatadog
providers. I've reduced it down to the following set of files:main.tf:
module-a/main.tf:
module-b/main.tf:
module-c/main.tf:
When run with
terraform plan -input=false
, it errors out with:Interestingly enough, if you uncomment the line in
module-a/main.tf
, you'll get the correct error about these credentials being incorrect:The text was updated successfully, but these errors were encountered: