binbashar / leverage

Binbash Leverage CLI intended to orchestrate Leverage Reference Architecture for AWS (www.binbash.co/leverage)
https://pypi.org/project/leverage/
Apache License 2.0
17 stars 2 forks source link

Feature | Login from a directory other than a layer #189

Closed juanmatias closed 9 months ago

juanmatias commented 1 year ago

Describe the Feature

As per one of our client users request, it is desirable to be able to log in with Leverage from any directory inside a Leverage project.

Today there is a requirement to be in a layer directory to login. The idea is to allow the user to run the login command for Leverage from any directory under the Leverage project.

As per this line the login can be done from account, layer o layer-group dirs: https://github.com/binbashar/leverage/blob/master/leverage/modules/aws.py#L147

When configuring:

❯ leverage aws configure sso
[16:45:00.071] ERROR    SSO configuration can only be performed at layer level.

Expected Behavior

To be able to log in from any directory under a project.

exequielrafaela commented 1 year ago

Adding extra comments based on @juanmatias and @diego-ojeda-binbash slack discussion.

CC: @binbashar/leverage-ref-architecture-aws-dev @binbashar/leverage-ref-architecture-aws-admin

exequielrafaela commented 9 months ago

Even if this could be seen as nice to have for a future version, for the moment we'll close this issue till customer projects actively requires it. This will give more space to work on more urgent fixes and features.

For the moment the user can get both AWS and Kubectl credentials using the leverage standard workflows