cromega
07/28/2025, 1:20 PMstack, a component called component, I had this in my stack configuration: components: {terraform: {component: {}}. I moved the component into a subfolder so I added this to my component definition in the stack: metadata: {component: subfolder/component} . This made terraform prompt for a state migration, which I did by running atmos terraform init -s stack component -- -migrate-state. The command succeeded but after running plan, I saw that the state was all gone. Turns out it was migrated into the wrong folder. Looks like atmos terraform init migrated the state into subfolder-component/stack/terraform.tfstate but it was supposed to be under subfolder-component/stack-component/terraform.tfstatecromega
07/28/2025, 2:50 PMstack or stack-component