Skip to content

atmos terraform state command does not work if templating is required in backend file #1057

Closed
@DaveElston

Description

@DaveElston

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

  1. Add templating into a backend yaml configuration
terraform:
  backend_type: s3
  backend:
    s3:
      region: !template '{{ .vars.home_region }}'
  1. Run atmos terraform state $component -s $stack list with any component that is using this templated state

Screenshots

Image

Environment

  • Any Atmos version past v1.160.0

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions