You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Corbalt team! I have a somewhat of an issue when trying to use your Kion tool: there is no option to set the path of the kion.yml config file. Here is what I mean.
We use Terragrunt, and here is an example of our repository for our IaC:
➜ test git:(main) ✗ cat kion.yml
account-id: xxxxxxxxx461
cloud-access-role: mct-application-admin
And inside my .envrc file is this:
source_up
export AWS_PROFILE=kion
So, if I am inside the test directory and run aws sts get-caller-identity or a Terragrunt command, the Kion tool works as expected.
However, if I go into any of the subdirectories and try to do the same, I get an error since the kion.yml config file isn't in that subdirectory and it can't be found.
I would like to request an option be given to add a KION_CONFIG_PATH environment variable that can be used to find the kion.yml file no matter the location. For example, the go code can be updated like so:
Now, no matter which subdirectory I am in under the test directory, the kion.yml file can be found and used. This would help make the tool more flexible. Without this option we would need this kion.yml config file in all of our subdirectories.
The text was updated successfully, but these errors were encountered:
jonahb
changed the title
No option for Kion config file path environment variable
Locate kion.yml in parent directories
Jul 24, 2023
Hi Corbalt team! I have a somewhat of an issue when trying to use your Kion tool: there is no option to set the path of the
kion.yml
config file. Here is what I mean.We use Terragrunt, and here is an example of our repository for our IaC:
In my
kion.yml
file is this:➜ test git:(main) ✗ cat kion.yml account-id: xxxxxxxxx461 cloud-access-role: mct-application-admin
And inside my
.envrc
file is this:source_up export AWS_PROFILE=kion
So, if I am inside the
test
directory and runaws sts get-caller-identity
or a Terragrunt command, the Kion tool works as expected.However, if I go into any of the subdirectories and try to do the same, I get an error since the
kion.yml
config file isn't in that subdirectory and it can't be found.I would like to request an option be given to add a
KION_CONFIG_PATH
environment variable that can be used to find thekion.yml
file no matter the location. For example, the go code can be updated like so:I'm not a Go expert, so this could likely be improved upon.
Then, inside of my
.envrc
file I can add a line for the config path:Now, no matter which subdirectory I am in under the
test
directory, thekion.yml
file can be found and used. This would help make the tool more flexible. Without this option we would need thiskion.yml
config file in all of our subdirectories.The text was updated successfully, but these errors were encountered: