Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
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.
╵
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
Steps to Reproduce
Additional Context
N/A
References
N/A