-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Invalid resource attributes in outputs ignored #9080
Comments
Probably related to #8077 |
There is definitely another bug tracking this, this has been a longstanding issue for probably years. The issue has to do with apply vs plan time validation and interpolation. This is likely fixable with new graphs but I'm unsure... |
I confirm this is still happening in Terraform 0.9.5. It also happens for any interpolation error: Here is a simpler test case (no relying on AWS):
The 2 latest outputs should fail. |
terraform won't fail when doing the interpolation of a output with some error. It will simply omit the output. hashicorp/terraform#9080 (comment)
This is fixed by #16204, and now enabled in master |
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. |
Terraform Version
Terraform v0.7.5-dev (e12f42a)
Affected Resource(s)
Terraform Configuration Files
Debug Output
Debug output
Expected Behavior
Terraform should error that "not-a-real-attribute" is not a real attribute.
Actual Behavior
Terraform ignores the attribute; it is missing from the output at the end.
Steps to Reproduce
terraform apply
orterraform refresh
Important Factoids
Running master, but reproed on 0.7.4 too.
The text was updated successfully, but these errors were encountered: