victorskl / yawsso

Yet Another AWS SSO - sync up AWS CLI v2 SSO login session to legacy CLI v1 credentials
MIT License
302 stars 26 forks source link

Login named profile then print env var issue #24

Closed victorskl closed 3 years ago

victorskl commented 3 years ago
yawsso login --profile dev -e

... should/expected to do 1) invoke login process for named profile dev 2) then print out exportable env vars for -e flag

Instead, it just shows:

Not an AWS SSO profile nor no source_profile found. Skip syncing profile `default`

Note: in this case console message _"Not an AWS SSO profile nor no sourceprofile found. Skip syncing profile default" is still okay as it just warns the user that the default profile is not SSO profile. However, it finds a bit confusing.