Alberto Rojas
11/04/2025, 6:31 PM--chdir flag working as expected?
pwd: repository-name/components/terraform/dynamodb
atmos --chdir full/path/to/repository-name terraform generate varfile -s foo-stack foo-component ā
works
atmos --chdir full/path/to/repository-name terraform plan -s foo-stack foo-component š„ fails with: The atmos.yaml CLI config file was not found.
ls -ls full/path/to/repository-name atmos.yaml hereErik Osterman (Cloud Posse)
11/04/2025, 8:31 PM--chdir flag extensively everyday (implemented it so that I could test atmos easier across multiple codebases)Erik Osterman (Cloud Posse)
11/04/2025, 8:32 PMatmos.yaml?Alberto Rojas
11/04/2025, 8:32 PMfull/path/to/repository-name/atmos.yamlErik Osterman (Cloud Posse)
11/04/2025, 8:32 PM--logs-level=DebugAlberto Rojas
11/04/2025, 8:33 PMAlberto Rojas
11/04/2025, 8:34 PMDEBU Set logs-level=debug logs-file=/dev/stderr
DEBU 'atmos.yaml' CLI config was not found paths="system dir, home dir, current dir, ENV vars"
DEBU Refer to https://atmos.tools/cli/configuration for details on how to configure 'atmos.yaml'
DEBU Using the default CLI configAlberto Rojas
11/04/2025, 8:39 PMrepo-name
āāā atmos.yaml
āāā components
ā āāā terraform
ā āāā dynamodb <---- I'm running the command from there, with atmos --chdir ../../../repo-name/
āāā stacks
āāā catalog
āāā mixins
ā āāā environment
ā āāā region
āāā orgs
āāā foo
āāā somethingErik Osterman (Cloud Posse)
11/04/2025, 8:48 PMAlberto Rojas
11/04/2025, 8:48 PMErik Osterman (Cloud Posse)
11/04/2025, 8:48 PMatmos.ymlErik Osterman (Cloud Posse)
11/04/2025, 8:48 PM--chdir is for the appropriate reason.Alberto Rojas
11/04/2025, 8:51 PMatmos --chdir ../../../repo-name/ -- fails
atmos --chdir /Users/albertorm95/Projects/repo-name/ -- fails
The reason I'm trying to change dir is because Atlantis starts its process in the root directory of terraform, in this case will be in the dynamodb dir
I'm doing cd to the repo-name/ path where the atmos.yaml is in order for it to workAlberto Rojas
11/04/2025, 8:52 PMAlso, if you run Atmos anywhere within a Git repository, it automatically resolves the location of theThis is not happening, if I move to any dir and runatmos.yml
atmos list stacks for example, it ask for the atmos.yamlErik Osterman (Cloud Posse)
11/04/2025, 8:53 PMAlberto Rojas
11/04/2025, 8:53 PMAtmos 1.196.0 on darwin/arm64Erik Osterman (Cloud Posse)
11/04/2025, 8:54 PMatmos --chdir $(pwd) describe configErik Osterman (Cloud Posse)
11/04/2025, 8:54 PMAlberto Rojas
11/04/2025, 8:55 PMAlberto Rojas
11/04/2025, 8:55 PM"base_path": "",
"components": {
"terraform": {
"base_path": "components/terraform",Erik Osterman (Cloud Posse)
11/04/2025, 8:56 PMErik Osterman (Cloud Posse)
11/04/2025, 8:56 PMAlberto Rojas
11/04/2025, 8:56 PM"cli_config_path": "/Users/alberto.rojas/Projects/repo-name",Alberto Rojas
11/04/2025, 8:57 PMterraform planAlberto Rojas
11/04/2025, 8:57 PMErik Osterman (Cloud Posse)
11/04/2025, 8:57 PMAlberto Rojas
11/04/2025, 8:58 PMAlberto Rojas
11/04/2025, 8:58 PMatmos --chdir full/path/to/repository-name terraform plan -s foo-stack foo-component š„ fails with: The atmos.yaml CLI config file was not found.Erik Osterman (Cloud Posse)
11/04/2025, 8:58 PMAlberto Rojas
11/04/2025, 8:58 PMErik Osterman (Cloud Posse)
11/04/2025, 9:15 PMErik Osterman (Cloud Posse)
11/04/2025, 9:15 PMErik Osterman (Cloud Posse)
11/04/2025, 9:15 PMAlberto Rojas
11/04/2025, 9:16 PMErik Osterman (Cloud Posse)
11/04/2025, 10:42 PMAlberto Rojas
11/04/2025, 10:44 PMAlberto Rojas
11/04/2025, 10:53 PMatmos --chdir full/path/to/repository-name terraform plan -s foo-stack foo-component
Error
invalid component: Could not find the component terraform in the stack foo-stack .
Check that all the context variables are correctly defined in the stack manifests.
Are the component and stack names correct? Did you forget an import?
atmos --chdir full/path/to/repository-name list stacks and atmos --chdir full/path/to/repository-name list components
WorksErik Osterman (Cloud Posse)
11/04/2025, 11:04 PMchdir location?Erik Osterman (Cloud Posse)
11/04/2025, 11:07 PM--chdir is like :
cd $CHDIR
atmnos terraform ...
# And the following should be true
ls -l path/to/my/components
ls -l atmos.yaml
ls -l stacks/mystack.yamlErik Osterman (Cloud Posse)
11/04/2025, 11:09 PMgit -C and make -C)Alberto Rojas
11/04/2025, 11:12 PMAlberto Rojas
11/04/2025, 11:13 PMchdir location is
repo-name <---- HERE
āāā atmos.yaml
āāā components
ā āāā terraform
ā āāā dynamodb <---- I'm running the command from there, with atmos --chdir full/path/to/repo-name/
āāā stacks
āāā catalog
āāā mixins
ā āāā environment
ā āāā region
āāā orgs
āāā foo
āāā somethingErik Osterman (Cloud Posse)
11/04/2025, 11:14 PMErik Osterman (Cloud Posse)
11/04/2025, 11:15 PM--chdir (although this should totally work, this is not the use case that it was designed for, because this is supported automatically in Atmos, provided you're running inside of a Git repository) we resolve the location of the root of the repository automatically at runtime and look for Atmos at that root. Everything is based on that root. This makes me think that there might be other configuration problems, but without looking at the configs, it's hard to say.Erik Osterman (Cloud Posse)
11/04/2025, 11:15 PMErik Osterman (Cloud Posse)
11/04/2025, 11:15 PMatmos.yamlAlberto Rojas
11/04/2025, 11:16 PMErik Osterman (Cloud Posse)
11/04/2025, 11:16 PM--chdir, what error do you get?Alberto Rojas
11/04/2025, 11:17 PMrepository-name/components/terraform/dynamodb
atmos terraform plan -s foo-stack foo-component
## Missing Configuration
The atmos.yaml CLI config file was not found.
The default Atmos stacks directory is set to stacks , but the directory does not exist in the current path.Alberto Rojas
11/04/2025, 11:17 PMErik Osterman (Cloud Posse)
11/04/2025, 11:18 PMErik Osterman (Cloud Posse)
11/04/2025, 11:18 PM--chdir shouldn't even be neededErik Osterman (Cloud Posse)
11/04/2025, 11:18 PM--chdir gives you an unexpected outcome.Alberto Rojas
11/04/2025, 11:19 PMErik Osterman (Cloud Posse)
11/04/2025, 11:19 PMErik Osterman (Cloud Posse)
11/04/2025, 11:20 PMgit clone inside of this repository, meaning that you have multiple git clones inside of git clones.Erik Osterman (Cloud Posse)
11/04/2025, 11:20 PM.git folderAlberto Rojas
11/04/2025, 11:21 PMErik Osterman (Cloud Posse)
11/04/2025, 11:22 PMAlberto Rojas
11/04/2025, 11:22 PMAlberto Rojas
11/04/2025, 11:24 PMDEBU Set logs-level=debug logs-file=/dev/stderr
DEBU ProcessCommandLineArgs input componentType=terraform args="[terraform plan -s foo-stack foo-component --logs-level=Debug]"
DEBU After ParseFlags identity.Value="" identity.Changed=false
DEBU Set using command line argument --logs-level=DebugErik Osterman (Cloud Posse)
11/04/2025, 11:43 PMErik Osterman (Cloud Posse)
11/04/2025, 11:43 PMErik Osterman (Cloud Posse)
11/04/2025, 11:55 PMbase_path: !repo-rootAlberto Rojas
11/04/2025, 11:56 PMError
invalid component: Could not find the component terraform in the stack foo-stack .
Check that all the context variables are correctly defined in the stack manifests.
Are the component and stack names correct? Did you forget an import?
same error, that with you branch atmos versionErik Osterman (Cloud Posse)
11/04/2025, 11:57 PMErik Osterman (Cloud Posse)
11/04/2025, 11:57 PMAlberto Rojas
11/04/2025, 11:57 PMErik Osterman (Cloud Posse)
11/04/2025, 11:58 PMErik Osterman (Cloud Posse)
11/05/2025, 12:05 AMATMOS_BASE_PATH=full/path/to/repository-name does that work? My assertion is then it discovers where the Atmos config is, and then everything else starts to work, even though that is not the intended fix.Alberto Rojas
11/05/2025, 1:48 PMinvalid component: Could not find the component plan in the stack foo-stack .
With 1.196.0: invalid component: Could not find the component terraform in the stack foo-stack .Erik Osterman (Cloud Posse)
11/05/2025, 3:07 PMAlberto Rojas
11/05/2025, 3:23 PMErik Osterman (Cloud Posse)
11/12/2025, 7:16 PMErik Osterman (Cloud Posse)
11/12/2025, 7:16 PMAlberto Rojas
11/12/2025, 7:36 PMErik Osterman (Cloud Posse)
11/12/2025, 8:38 PM