Tyler Rankin
03/15/2026, 4:21 PMfatal error: stack overflow when using atmos > v1.200.0. Are we up against a stack count limit? import limit? we do make use of go templates and functions (!terraform.state).
Seemingly all atmos commands (describe component, validate stacks, validate schema, etc.) complete successfully, with the exception of atmos describe stacks -s <stack>.
Recent change to cloudposse/utils v1.32.0 bumped atmos above v1.200.0, and now all of our remote-state stacks are failing with a generic terraform error failed to find import. Pinning utils to v1.31.0 resolves this, which i believe uses an older atmos version < 1.200.0.
Any tips for the best path to resolution? We’d like to use the latest version of atmos. TIA!Tyler Rankin
03/15/2026, 4:27 PMProcessTmplWithDatasources. Here are 2 examples:
## atmos v1.209.0 - fail
TRCE Processing import structs count=0 file=workflows/okta-oidc-eks-auth.yaml track_provenance=false
DEBU CreateAndAuthenticateManager called identityName="" hasAuthConfig=true
DEBU No identity resolved, returning nil
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0x1403384a4f0 stack=[0x1403384a000, 0x1405384a000]
fatal error: stack overflow
runtime stack:
runtime.throw({0x1058278c2?, 0x0?})
runtime/panic.go:1094 +0x34 fp=0x16e5e2da0 sp=0x16e5e2d70 pc=0x1020c68f4
runtime.newstack()
runtime/stack.go:1159 +0x44c fp=0x16e5e2ed0 sp=0x16e5e2da0 pc=0x1020ab6ac
runtime.morestack()
runtime/asm_arm64.s:392 +0x70 fp=0x16e5e2ed0 sp=0x16e5e2ed0 pc=0x1020cd440
goroutine 1 gp=0x140000021c0 m=15 mp=0x14001780808 [running]:
<http://github.com/cloudposse/atmos/internal/exec.processBaseComponentConfigInternal(0x140012a8208|github.com/cloudposse/atmos/internal/exec.processBaseComponentConfigInternal(0x140012a8208>, 0x140546506e0, 0x14004e9b3e0, {0x140021054e0, 0x1c}, {0x14001520125, 0xe}, {0x14001660108, 0x13}, {0x0, ...}, ...)
<http://github.com/cloudposse/atmos/internal/exec/stack_processor_utils.go:1246|github.com/cloudposse/atmos/internal/exec/stack_processor_utils.go:1246> +0x18ac fp=0x1403465a4f0 sp=0x1403465a4f0 pc=0x10560229c
<http://github.com/cloudposse/atmos/internal/exec.processBaseComponentConfigInternal(0x140012a8208|github.com/cloudposse/atmos/internal/exec.processBaseComponentConfigInternal(0x140012a8208>, 0x140546506e0, 0x14004e9b3e0, {0x1400185e720, 0x25}, {0x14001520125, 0xe}, {0x140021054e0, 0x1c}, {0x0, ...}, ...)
<http://github.com/cloudposse/atmos/internal/exec/stack_processor_utils.go:1298|github.com/cloudposse/atmos/internal/exec/stack_processor_utils.go:1298> +0x364 fp=0x1403465a940 sp=0x1403465a4f0 pc=0x105600d54
There are many `ProcessTmplWithDatasources entries here:
## atmos v1.200.0 - success
DEBU Skipping imported file (will be processed via parent) file=catalog/vpc/staging.yaml
DEBU CreateAndAuthenticateManager called identityName="" hasAuthConfig=true
DEBU No identity resolved, returning nil
TRCE ProcessTmplWithDatasources template=describe-stacks-all-sections
TRCE ProcessTmplWithDatasources template=describe-stacks-all-sections evaluation=1
TRCE ProcessTmplWithDatasources: processed template=describe-stacks-all-sectionsAndriy Knysh (Cloud Posse)
03/15/2026, 4:48 PMAndriy Knysh (Cloud Posse)
03/15/2026, 4:50 PMatmos describe stacks -s <stack> --process-templates=false --process-functions=false to see if if solves the issue. If it does, the issue is with some of your templates. Let me know, I'll help you to debug itAndriy Knysh (Cloud Posse)
03/15/2026, 4:50 PMRecent change to cloudposse/utils v1.32.0 bumped atmos above v1.200.0, and now all of our remote-state stacks are failing with a generic terraform error failed to find importAndriy Knysh (Cloud Posse)
03/15/2026, 4:53 PMTyler Rankin
03/15/2026, 5:02 PMregarding the first issue, please executeThis produces the same fatal stack overflow error, seemingly at the same spot looking at the Trace. We are now runningatmos describe stacks -s <stack> --process-templates=false --process-functions=false
v1.208.0. The above describe stacks commands fails on anything above 1.200.0Andriy Knysh (Cloud Posse)
03/15/2026, 5:10 PMatmos describe stacks -s <stack> - does it throw the error for all stacks, or for a specific stack only?Andriy Knysh (Cloud Posse)
03/15/2026, 5:13 PMatmos describe stacks -s <stack> - does it throw the error for all your stacks, or only for specific stacks?
• Find Go templates {{ }} in your stacks and try to disable them one by one (not sure if that's possible depending on how many of them you have)
• Try to disable Go templates in your atmos.yaml
templates:
settings:
enabled: falseAndriy Knysh (Cloud Posse)
03/15/2026, 5:15 PMAndriy Knysh (Cloud Posse)
03/15/2026, 5:16 PMDEBU CreateAndAuthenticateManager called identityName="" hasAuthConfig=true
DEBU No identity resolved, returning nil
runtime: goroutine stack exceeds 1000000000-byte limitAndriy Knysh (Cloud Posse)
03/15/2026, 5:16 PMTyler Rankin
03/15/2026, 5:23 PMtemplates.settings.enabled still fails the same way
3. we have a lot of {{ }} but did a bulk find/replace, hopefully removing all. still fails in the same
4. we are not using Atmos Auth
Sorry not much help 🙂Andriy Knysh (Cloud Posse)
03/15/2026, 5:30 PM--ai flag is not relased yet)Andriy Knysh (Cloud Posse)
03/15/2026, 5:31 PMTyler Rankin
03/15/2026, 5:37 PM{}. Here’s the file:
settings:
spacelift:
autodeploy: true
space_id: space-dev-id
labels:
- tenant:customer
- environment:gbl
- stage:dev
local_preview_enabled: true
vars:
stage: dev
terraform:
vars: {}
components: {}
We are seeing this on our spaceift CI runs as well, so i don’t think it is just my machine. Would there be any clues in the atmos config file?Tyler Rankin
03/15/2026, 5:39 PMAndriy Knysh (Cloud Posse)
03/15/2026, 5:50 PMbase_path: "." in atmos.yaml and try again
let me know if it's working for you. If not, we'll continue debuggingTyler Rankin
03/15/2026, 6:06 PMbase_path or notAndriy Knysh (Cloud Posse)
03/15/2026, 6:18 PMi just make a pretty empty stack file without any imports and it still errored on 1.209.0. Again, switching to 1.200.0 was successful, it returneddo you have just this one file, or all other stacks are still in the repo when you tested it?. Here’s the file:{}
Tyler Rankin
03/15/2026, 6:20 PMAndriy Knysh (Cloud Posse)
03/15/2026, 6:26 PMThe half-split troubleshooting technique isolatess faults by systematically dividing a system, process, or code in half to locate the issue. By testing at the midpoint, you determine if the issue is in the first or second half, eliminating 50% of possibilities with each check. This methodical approach continues, cutting the remaining faulty segment in half until the problem is identified.Tyler Rankin
03/15/2026, 8:00 PMmetadata on the abstract definitions - is that necessary?
For instance we have:
components:
terraform:
iam-delegated-roles-defaults:
metadata:
component: iam-delegated-roles
type: abstract
iam-delegated-roles:
metadata:
component: iam-delegated-roles
type: real
inherits:
- iam-delegated-roles-defaults
When i remove metadata.component from iam-delegated-roles-defaults the atmos describe stacks command completes!!Tyler Rankin
03/15/2026, 8:54 PMATMOS_BASE_PATH being set to the monorepo module path on the spacelift worker - and am reproducing the same error locally
│ Error: failed to find import
│
│ with module.account_map.data.utils_component_config.config[0],
│ on .terraform/modules/account_map/modules/remote-state/main.tf line 1, in data "utils_component_config" "config":
│ 1: data "utils_component_config" "config" {
│Andriy Knysh (Cloud Posse)
03/16/2026, 3:02 PMremoveis it working with the latest atmos version? if it is, then we'll review the code - it should not panic when you havefrommetadata.componenttheiam-delegated-roles-defaultscommand completesatmos describe stacks
metadata.component on type: abstract
thanks for reportingAndriy Knysh (Cloud Posse)
03/16/2026, 3:03 PMutils provider 1.33.0 and let me know the resultAndriy Knysh (Cloud Posse)
03/16/2026, 3:03 PMTyler Rankin
03/16/2026, 3:07 PMterraform console I am even able to see the correct values for module.account_map.
This error is still an atmos query not working correctly?Andriy Knysh (Cloud Posse)
03/16/2026, 3:21 PMThe stack overflow when running describe stacks seems to be resolved. Not sure if it contributed to the issue but some of the inherited components use !terraform.state in their definitions.what did you do to solve this issue? did you just remove
component: iam-delegated-roles from the abstract components, e.g.
iam-delegated-roles-defaults:
metadata:
component: iam-delegated-roles
type: abstract
or someting else?Tyler Rankin
03/16/2026, 4:06 PMmetadata.component from the abstract components. I had to do this on 2 iam-delegated-roles, and eks. I think there are some dependencies between the two, but once they are both removed the atmos commands complete. I can probably share these files in DMAndriy Knysh (Cloud Posse)
03/16/2026, 4:13 PMmetadata.component on abstract components does not do anything (since the abstract components can't be applied), but it should not fail as well
I'll let you know if we need your filesAndriy Knysh (Cloud Posse)
03/16/2026, 4:14 PMTyler Rankin
03/16/2026, 4:20 PMErik Osterman (Cloud Posse)
03/16/2026, 8:23 PMBut now with metadata inheritance it should "do something": populate the default componenton abstract components does not do anything (since the abstract components can't be applied), bmetadata.component
Tyler Rankin
03/16/2026, 8:25 PMTyler Rankin
03/16/2026, 8:40 PMAndriy Knysh (Cloud Posse)
03/16/2026, 8:57 PMAndriy Knysh (Cloud Posse)
03/16/2026, 8:59 PM>on abstract components does not do anything (since the abstract components can't be applied), bmetadata.component
But now with metadata inheritance it should "do something": populate the default componentyes after we merged the PR for
metadata inheritance, it introduced some changes which affected the @Tyler Rankin infra.
i'll open a PR for the fix soonTyler Rankin
03/16/2026, 9:56 PMfailed to find import error here as well? I’m not sure i’m headed in the right path, and feel this might be devolving from atmos but i do notice there are a couple differences on the terraform packages being installed, some with recent breaking changes:
• cloudposse/utils v1.31.0
◦ terraform-plugin-go@v0.27.0
◦ terraform-plugin-sdk@2v2.37.0
• cloudposse/utils v1.33.0
◦ terraform-plugin-go@v0.31.0
◦ terraform-plugin-sdk@2v2.40.0
https://github.com/hashicorp/terraform-plugin-go/releases
https://github.com/hashicorp/terraform-plugin-sdk/releasesAndriy Knysh (Cloud Posse)
03/16/2026, 9:58 PMfailed to find import - I'll get to it next (it's prob not related to the fix for fatal error: stack overflow at all)Tyler Rankin
03/16/2026, 10:03 PMAndriy Knysh (Cloud Posse)
03/17/2026, 4:03 AMfatal error: stack overflow is in the new release - please try it out
https://github.com/cloudposse/atmos/releases/tag/v1.210.0
https://github.com/cloudposse/atmos/pull/2214Tyler Rankin
03/17/2026, 5:39 PMmetadata.component references from our abstract definitionsErik Osterman (Cloud Posse)
03/17/2026, 5:42 PMAndriy Knysh (Cloud Posse)
03/17/2026, 5:48 PMmetadata.component in abstract components
help us to understand the issueTyler Rankin
03/17/2026, 5:49 PMAndriy Knysh (Cloud Posse)
03/17/2026, 5:49 PMAndriy Knysh (Cloud Posse)
03/17/2026, 5:50 PMTyler Rankin
03/17/2026, 5:50 PMTyler Rankin
03/17/2026, 5:52 PMwe’ll release it as a patch release soonThen
cloudposse/utils will pickup that patch release? Trying to get the dependencies straight in my mindAndriy Knysh (Cloud Posse)
03/17/2026, 5:53 PMChaim
03/19/2026, 11:51 AMcloudposse/utils v2.2.0 checksums
I'm getting this error during terraform init
Error while installing cloudposse/utils v2.2.0: checksum list has unexpected SHA-256 hash 1f75418c5a89d8f6fd95b9dd58903574cf8b2c58fdd9dddf21a019d2d7da34d (expected c4f8282b0664d27f4c475a800c244a87fd844e73b67aeb737d8479f84fe8b155)Andriy Knysh (Cloud Posse)
03/19/2026, 1:18 PMIgor Rodionov
03/19/2026, 1:18 PMAndriy Knysh (Cloud Posse)
03/19/2026, 1:20 PMIgor Rodionov
03/19/2026, 1:26 PMAndriy Knysh (Cloud Posse)
03/19/2026, 1:38 PMAndriy Knysh (Cloud Posse)
03/19/2026, 1:38 PMTyler Rankin
03/19/2026, 2:51 PMremote-state to v2, but i still receive failed to find import on terraform plan (with utils using v2.3.0), when setting ATMOS_BASE_PATH to relative path from CWD. It succeeds with absolute pathErik Osterman (Cloud Posse)
03/19/2026, 2:51 PMErik Osterman (Cloud Posse)
03/19/2026, 2:52 PMErik Osterman (Cloud Posse)
03/19/2026, 2:52 PMAndriy Knysh (Cloud Posse)
03/19/2026, 3:30 PMTyler Rankin
03/19/2026, 4:03 PMterraform plan <vars-file>. The remote-state module calls the utils provider which ultimately defines the version of atmos.
Assuming I have that correct - my terraform plan still fails.
module.yaml_config.module.maps_deepmerge.data.utils_deep_merge_yaml.all_map_configs: Reading...
module.yaml_config.module.maps_deepmerge.data.utils_deep_merge_yaml.all_map_configs: Read complete after 0s [id=02338e6bebdc5adb05d28a654095b7397a2cad9e]
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: failed to find import
│
│ with module.account_map.data.utils_component_config.config[0],
│ on .terraform/modules/account_map/modules/remote-state/main.tf line 1, in data "utils_component_config" "config":
│ 1: data "utils_component_config" "config" {
│
╵
╷
│ Error: failed to find import
│
│ with module.iam_roles.module.account_map.data.utils_component_config.config[0],
│ on .terraform/modules/iam_roles.account_map/modules/remote-state/main.tf line 1, in data "utils_component_config" "config":
│ 1: data "utils_component_config" "config" {
│
╵
Releasing state lock. This may take a few moments...
⧉ BrightAI
√ . [bai-mgmt-gbl-identity-admin] (HOST) terraform ⨠ echo $ATMOS_BASE_PATH
.terraform/modules/monorepoAndriy Knysh (Cloud Posse)
03/19/2026, 4:07 PMAndriy Knysh (Cloud Posse)
03/19/2026, 4:07 PMTyler Rankin
03/19/2026, 4:07 PM√ . [bai-mgmt-gbl-identity-admin] (HOST) terraform ⨠ terraform version
Terraform v1.5.7
on linux_arm64
+ provider <http://registry.terraform.io/cloudposse/template|registry.terraform.io/cloudposse/template> v2.2.0
+ provider <http://registry.terraform.io/cloudposse/utils|registry.terraform.io/cloudposse/utils> v2.3.0
+ provider <http://registry.terraform.io/hashicorp/aws|registry.terraform.io/hashicorp/aws> v6.37.0
+ provider <http://registry.terraform.io/hashicorp/external|registry.terraform.io/hashicorp/external> v2.3.5
+ provider <http://registry.terraform.io/hashicorp/http|registry.terraform.io/hashicorp/http> v3.5.0
+ provider <http://registry.terraform.io/hashicorp/local|registry.terraform.io/hashicorp/local> v2.7.0
+ provider <http://registry.terraform.io/hashicorp/time|registry.terraform.io/hashicorp/time> v0.13.1
Your version of Terraform is out of date! The latest version
is 1.14.7. You can update by downloading from <https://www.terraform.io/downloads.html>Tyler Rankin
03/19/2026, 4:07 PMAndriy Knysh (Cloud Posse)
03/19/2026, 4:08 PMTyler Rankin
03/20/2026, 8:09 PMAndriy Knysh (Cloud Posse)
03/20/2026, 8:32 PMAndriy Knysh (Cloud Posse)
03/20/2026, 8:33 PMmain branch, but not in the provider yet, so you can't test it yet)Tyler Rankin
03/20/2026, 8:41 PMIgor Rodionov
03/20/2026, 9:34 PMError while installing cloudposse/utils v2.2.0: checksum list has unexpected SHA-256 hash 1f75418c5a89d8f6fd95b9dd58903574cf8b2c58fdd9dddf21a019d2d7da34d (expected c4f8282b0664d27f4c475a800c244a87fd844e73b67aeb737d8479f84fe8b155)
https://github.com/cloudposse/terraform-provider-utils/issues/536Chaim
03/23/2026, 8:57 AMErik Osterman (Cloud Posse)
03/23/2026, 1:41 PMTyler Rankin
03/24/2026, 12:40 AMAndriy Knysh (Cloud Posse)
03/24/2026, 12:45 AMTyler Rankin
03/24/2026, 12:52 AMAndriy Knysh (Cloud Posse)
03/24/2026, 5:25 PMTyler Rankin
03/24/2026, 5:55 PM- Installing cloudposse/utils v2.5.0...
- Installed cloudposse/utils v2.5.0 (self-signed, key ID 7B22D099488F3D11)
I kept my relative path set in ATMOS_BASE_PATH during the spacelift run and the plan completed successfullyAndriy Knysh (Cloud Posse)
03/24/2026, 6:03 PMAndriy Knysh (Cloud Posse)
03/24/2026, 6:03 PMAndriy Knysh (Cloud Posse)
03/24/2026, 6:03 PMIgor Rodionov
03/24/2026, 6:42 PMAndriy Knysh (Cloud Posse)
03/24/2026, 6:45 PMTyler Rankin
03/24/2026, 7:01 PMErik Osterman (Cloud Posse)
03/24/2026, 7:24 PM