Skip to content

Terraform errors don't give line numbers, making it hard to debug #6453

Closed
@bpmct

Description

@bpmct

Error from Coder:

⧗  Detecting persistent resources 
  Terraform 1.1.9
  Error: Unsupported attribute
  This object has no argument, nested block, or exported attribute named "namespace".
✔ Detecting persistent resources [2579ms]
✘ Cleaning Up [9ms]
template import provision for start: recv import provision: plan terraform: terraform plan: exit status 1
Run 'coder templates push --help' for usage.        

Error from terraform apply

╷
│ Error: Unsupported attribute
│ 
│   on main.tf line 21, in locals:
│   21:   namespace = "coder-ws-${lower(data.coder_workspace.me.namespace)}"
│ 
│ This object has no argument, nested block, or exported attribute named "namespace".
╵

Metadata

Metadata

Assignees

Labels

s2Broken use cases or features (with a workaround). Only humans may set this.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions