Skip to content

ATMOS_CLI_CONFIG_PATH set wrong for terraform commands #1094

@mss

Description

@mss

Describe the Bug

I tried to use the new v1.163.0 feature from #1072 to remove one of our workarounds for exactly that. While testing it I saw that the directory is set to the wrong value: It looks like it isn't set to the directory where the atmos.yaml is located but to the full path to the file sans the .yaml extension.

Expected Behavior

If I start eg a terraform shell in the directory /home/me/some-atmos-project the variable ATMOS_CLI_CONFIG_PATH should have the value /home/me/some-atmos-project. It should not have the value /home/me/some-atmos-project/atmos.

See also https://atmos.tools/cli/configuration/#configuration-file-atmosyaml

Steps to Reproduce

Assuming that the atmos.yaml is located in the current directory:

unset ATMOS_CLI_CONFIG_PATH
pwd
atmos terraform shell $component --stack $stack
echo $ATMOS_CLI_CONFIG_PATH

Screenshots

No response

Environment

  • Version: v1.163.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