Describe the Bug
We currently use v1.214.0. I tried to verify that everything still works in v1.228.0 and a simple atmos list stacks became very slow:
v1.214.0
# time atmos list stacks | wc -l
25
real 0m0,434s
user 0m1,053s
sys 0m0,109s
v1.228.0
# time atmos list stacks | wc -l
25
real 0m35,679s
user 0m30,667s
sys 0m2,094s
I think something has changed with deferred template parsing because I had to comment out some code calling !terraform.output which otherwise caused an error
Error: failed to execute describe stacks: failed to resolve deferred YAML functions in "vars": failed to process YAML function at subnets: failed to render template with datasources: failed to render deferred YAML function value:
template: deferred-yaml-function-value:1:89: executing "deferred-yaml-function-value" at <.settings.account.environment>: map has no entry for key "account" ```
Expected Behavior
Listing a few stacks shouldn't take half a minute.
Steps to Reproduce
No response
Screenshots
No response
Environment
Additional Context
I should be able to do some bisecting to find the version where this was introduced.
This might be the same issue as #2344 even though we don't use locals.
Out atmos.yaml:
base_path: !repo-root '.'
components:
terraform:
base_path: 'components/terraform'
deploy_run_init: true
init_run_reconfigure: true
auto_generate_backend_file: true
workspaces_enabled: false
stacks:
base_path: 'stacks'
included_paths:
- 'site/**/*.yaml'
excluded_paths:
- '**/_*.yaml'
name_template: '{{ .settings.context.namespace }}-{{ .settings.context.tenant }}-{{ .settings.context.environment }}-{{ .settings.context.stage }}'
vendor:
base_path: 'vendor'
templates:
settings:
enabled: true
evaluations: 3
sprig:
enabled: true
gomplate:
enabled: true
version:
check:
enabled: false
settings:
telemetry:
enabled: false
commands: !include 'scripts/commands.yaml'
Describe the Bug
We currently use v1.214.0. I tried to verify that everything still works in v1.228.0 and a simple
atmos list stacksbecame very slow:v1.214.0
v1.228.0
I think something has changed with deferred template parsing because I had to comment out some code calling
!terraform.outputwhich otherwise caused an errorExpected Behavior
Listing a few stacks shouldn't take half a minute.
Steps to Reproduce
No response
Screenshots
No response
Environment
Additional Context
I should be able to do some bisecting to find the version where this was introduced.
This might be the same issue as #2344 even though we don't use
locals.Out
atmos.yaml: