Tyler Rankin
03/03/2026, 5:08 PMremote-state, generally v1.8.0. Recently we've encountered an issue with our eks component. We believe there is a piece of this on Spacelift’s end that is causing the issue but was curious if anyone else using remote-state might've observed this behavior.
All Spacelift UI outputs for each of our eks stacks (>20) recently started to display sandbox values. We don't have any corresponding runs that show these being set. The stacks are failing to apply due to a lineage mismatch.
Throughout the planning phase we have multiple remote-state calls reading cross account values and we observe the workspace changing by checking terraform workspace show. I assume this might be normal for the remote-state calls to actually lookup the state values.
It seems like the last remote-state call might be to sandbox, and Spacelift isn't reading .terraform/enviroment a final time after it switches back to workspace of the actual stack we are planning. This causes Spacelift to pull the sandbox state and attempt an apply which fails. While Spacelift UI outputs are incorrect, the state file for each of our eks components are intact and don't have erroneous sandbox values.
All that said our local atmos applies succeed. So I guess the question to the group is has anyone seen an issue with remote-state ever targeting the incorrect workspace at the end of a plan/apply?Erik Osterman (Cloud Posse)
03/03/2026, 11:32 PMAndriy Knysh (Cloud Posse)
03/03/2026, 11:40 PM< 2, the new utils provider major version v2 should not affect itAndriy Knysh (Cloud Posse)
03/03/2026, 11:41 PMutils provider is it downloading? Also, when you run locally, what version of the utils provider it's using?Andriy Knysh (Cloud Posse)
03/03/2026, 11:44 PMTyler Rankin
03/04/2026, 12:27 AMv1.31.0 of utils. We believe we narrowed in on the culprit. What version of remote-state does atmos.Component use?
We found the commit where these runs start to fail and we are using the atmos.Component function to get our eks cluster arn into an iam-delegated-roles configuration:
eks_cluster_arn: '{{ (atmos.Component "eks" (printf "core-uw2-prod") ).outputs.eks_cluster_arn }}'
When we hard code the cluster arn above the issue resolves. And we noticed during the failed runs that the workspace switches between all those that we have used with the atmos.Compoent lookupAndriy Knysh (Cloud Posse)
03/04/2026, 12:34 AMremote-state module and utils provider should support atmos.Component template function, but it looks like there are some issues with that - we'll reviewAndriy Knysh (Cloud Posse)
03/04/2026, 12:35 AMatmos.Component template function, we recommend using the !terraform.state YAML function - it loads the state directly from the bucket and is much faster then atmos.Component (which calls the terraform binary)
https://atmos.tools/functions/yaml/terraform.stateAndriy Knysh (Cloud Posse)
03/04/2026, 12:35 AMAndriy Knysh (Cloud Posse)
03/04/2026, 12:36 AMWe found the commit where these runs start to failwhat commit is that?
Tyler Rankin
03/04/2026, 1:09 AMatmos.Component to our iam-delegated-roles component, and it wasn’t apparent that was causing this issue in eks. So we found the commit on our end 🙂
We are going to look at trying !terraform.state 🙌Erik Osterman (Cloud Posse)
03/04/2026, 1:12 AM