Charles Smith
04/16/2026, 3:43 PMatmos !terraform.state YAML function to lookup outputs in the older terraform root modules.
Then I had a crazy idea. If could create a dummy component that essentially only contains a context.tf could I then setup a stack that points to the older root modules where each component inherits from dummy but then specifies it's backend to make !terrafofrm.state work. To my surprise this actually works amazingly well!
Here's what one of these dummy instances actually looks like (bogus account id swapped in):
components:
terraform:
vpc/us-east-1-development:
metadata:
enabled: false
terraform_workspace: "default"
component: dummy
name: vpc/us-east-1-development
backend:
s3:
key: infra/terraform/123456789012/vpc/us-east-1-development/terraform.tfstate
Then I can use this in another real component in the same stack:
vars:
vpc_id: !terraform.state vpc/us-east-1-development vpc_id
Thought I would share in case this helps anyone else move into atmos
The metadata.enabled is very cool cause that ensures my CI/CD does not try to plan/apply this dummy component as well!Erik Osterman (Cloud Posse)
04/16/2026, 7:03 PMErik Osterman (Cloud Posse)
04/16/2026, 7:04 PMErik Osterman (Cloud Posse)
04/16/2026, 7:04 PMCharles Smith
04/16/2026, 7:34 PMatmos really nice for us. When I used atmos before you didn't even have the YAML functions yet but then we also did 90% of things with your oss components.Erik Osterman (Cloud Posse)
04/16/2026, 7:58 PMJeremy G (Cloud Posse)
05/01/2026, 6:38 PMmetadata.type: abstract)Charles Smith
05/01/2026, 6:47 PMJeremy G (Cloud Posse)
05/01/2026, 6:48 PMCharles Smith
05/01/2026, 6:49 PM