alks-cli
alks-cli copied to clipboard
Feature Request - add support for local configuration files (that override the user-level defaults)
Some of our terraform uses root-modules that are specific to single accounts; whenever we run those modules we use ALKS to get a session for the one relevant account.
A git repo might look a bit like:
./src/
./terraform/
./terraform/accounts/awsaccount1
./terraform/accounts/awsaccount2
As a minor enhancement, it would be nice if we could add a config file to those root modules to configure alks-cli
to quickly get a session for the relevant account. Other CLI tools sometimes do this via "rc" files. Typically these files override the default configurations, and/or specify values that act as default parameters.
A pseudo-example for alks-cli might look something like:
File: ./terraform/accounts/awsaccount1/.alksrc
account=awsaccount1
role=Admin
With the above example, running commands like alks sessions open
in thr ./terraform/accounts/awsaccount1
directory would use the specified account and role as the defaults. Running the same command elsewhere would not use these directory-specific settings.