Skip to content

Feature Request - add support for local configuration files (that override the user-level defaults) #238

@SWolfeCAI

Description

@SWolfeCAI

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions