Nick Dunn
12/12/2025, 7:29 PMcomponents:
terraform:
testme: {}
And then I create a component called "testme" with a single main.tf file.
locals {
hiWorld = "hello world"
]
}
output "hw" {
value = local.hiWorld
}
You'll notice the typo in the main.tf. It took me quite a while to eventually boil the problem down to this. To be fair, I should have noticed the syntax error sooner, but I figured if the problem was bad Terraform, I'd get an error message stating that. So, I didn't really bother looking at the component's Terraform at first.
So, if I run atmos terraform plan or even atmos terraform validate for this component, I get this:
Error
Error: invalid component
## Explanation
Could not find the component testme in the stack weird-problem.
Check that all the context variables are correctly defined in the stack manifests.
Are the component and stack names correct? Did you forget an import?
If I remove the syntax mistake, the problem completely disappears and everything runs as expected. The only changes I've made to Atmos recently is I added an 'auth' block to our configuration so we could take advantage of those features. Is this a legitimate bug that I should create a GH Issue for or have I overlooked/misunderstood something? I've definitely had Terraform syntax errors before that did not cause this behavior. Are Terraform locals treated differently in Atmos under the hood?Andriy Knysh (Cloud Posse)
12/12/2025, 8:03 PMAndriy Knysh (Cloud Posse)
12/12/2025, 8:06 PM] in terraform causes Atmos to throw the error?Nick Dunn
12/12/2025, 8:46 PMNick Dunn
12/12/2025, 8:48 PMErik Osterman (Cloud Posse)
12/12/2025, 9:12 PMErik Osterman (Cloud Posse)
12/12/2025, 9:12 PMErik Osterman (Cloud Posse)
12/12/2025, 9:12 PMErik Osterman (Cloud Posse)
12/12/2025, 9:12 PMErik Osterman (Cloud Posse)
12/12/2025, 9:13 PMErik Osterman (Cloud Posse)
12/12/2025, 9:37 PMNick Dunn
12/12/2025, 10:28 PMError
Error: failed to load terraform module: Argument or block definition required: An argument or block definition is required here.
## Explanation
The Terraform component 'hello/world' contains invalid HCL code at REDACTED/components/terraform/hello/world/main.tf:42.
## Hints
💡 Run 'atmos terraform validate' to see more details:Nick Dunn
12/12/2025, 10:29 PMErik Osterman (Cloud Posse)
12/12/2025, 10:48 PMAndriy Knysh (Cloud Posse)
12/12/2025, 10:51 PM