You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
locals {
org_id ="123456789"
}
module"frobnitz" {
source ="modules/frobulator"
name ="zork"
organization_id = org_id # Note, this should be local.org_id, but I've made a typo.
}
Debug Output
N/A
Expected Behavior
The error message should clearly point me to the problem, ideally with examples and a guess to what the author meant.
Example message:
The reference org_id is not in a valid <resource>.<attribute> form. Did you mean locals.org_id?
Actual Behavior
A reference to a resource type must be followed by at least one attribute access, specifying the resource name.
❯ terraform plan
╷
│ Error: Invalid reference
│
│ on main.tf line 10:
│ 10: organization_id = org_id
│
│ A reference to a resource type must be followed by at least one attribute access, specifying the resource name.
╵
Steps to Reproduce
terraform init
terraform plan
Additional Context
N/A
References
N/A
The text was updated successfully, but these errors were encountered:
Terraform Version
Terraform Configuration Files
Debug Output
N/A
Expected Behavior
The error message should clearly point me to the problem, ideally with examples and a guess to what the author meant.
Example message:
Actual Behavior
❯ terraform plan ╷ │ Error: Invalid reference │ │ on main.tf line 10: │ 10: organization_id = org_id │ │ A reference to a resource type must be followed by at least one attribute access, specifying the resource name. ╵
Steps to Reproduce
Additional Context
N/A
References
N/A
The text was updated successfully, but these errors were encountered: