Closed
Description
Describe the Bug
Due to the change described here: #1023 - templating is not longer applied when running a terraform state
command.
If you are using templating as part of your state backend config, atmos state commands will no longer work correctly.
Expected Behavior
When running atmos terraform state
atmos should still run templating to generate the backend configuration.
This was the behaviour prior to version v1.160.0
Steps to Reproduce
- Add templating into a backend yaml configuration
terraform:
backend_type: s3
backend:
s3:
region: !template '{{ .vars.home_region }}'
- Run
atmos terraform state $component -s $stack list
with any component that is using this templated state
Screenshots

Environment
- Any Atmos version past
v1.160.0
Additional Context
No response