Elon
03/24/2026, 2:26 PM!terraform.state and dependencies.components between components in the same stack, for example, VPC and subnets.
When I run atmos terraform apply --all -s stack-name, it does not work as expected and throws an error while trying to create the subnets after the VPC is created. The subnets provision successfully only after a second deployment.
Is this expected behavior? I assumed using dependencies and terraform.state would create all components in a stack in order without errors.Andriy Knysh (Cloud Posse)
03/24/2026, 2:46 PM!terraform.state - I'd like to see your configurationAndriy Knysh (Cloud Posse)
03/24/2026, 2:51 PMdependencies.components is a new feature (introduced in the last release).
Did you try using the old one (settings.depends_on)?
https://atmos.tools/stacks/settings/depends_on
Can you try it? If it works for you, will be easier for us to debug dependencies.componentsElon
03/25/2026, 2:13 PMdepends_on.
This looks inconsistant because on a second run it tried to create the vpc and then the ec2 and not the subnets, which caused another error even though I configured the ec2 to be dependent on the subnets.
If I use atmos describe dependents vpc -s dev-ue1, I do see the subnets component as a dependency, so the configuration looks valid.
Also, atmos validate stacks is okay.
So either the dependencies are for reference only and don't actually do anything, or I'm missing something because atmos terraform apply with --all does not take the dependencies into consideration.
Also, on another note, I saw that only apply and plan have --all flags.
What about init and destroy?
Do I have to go manually component by component in a stack for those?
Because apply or plan do not create the underlying S3 bucket for the backend; I have to init first.
So I have to init each component individually and delete each component individually?Andriy Knysh (Cloud Posse)
03/25/2026, 2:15 PMElon
03/25/2026, 2:18 PMJonathan Rose
04/29/2026, 6:52 PMatmos terraform plan --all. Should I be using Configure Dependencies Between Components (Legacy) | atmos or Component Dependencies | atmos to define dependencies?