synfinatic / aws-sso-cli

A powerful tool for using AWS Identity Center for the CLI and web console.
https://synfinatic.github.io/aws-sso-cli/
GNU General Public License v3.0
413 stars 49 forks source link

aws-sso-profile returns error #836

Closed derkrisz closed 1 month ago

derkrisz commented 2 months ago

Output of aws-sso version:

AWS SSO CLI Version 1.15.0 -- Copyright 2021-2023 Aaron Turner
9f897c5be301ea1a3cd1b143dc75d0d2bff5e500 (v1.15.0) built at 2024-04-05T18:29:16+0000

Describe the bug: Running aws-sso-profile returns the following error: FATAL Error running command: Please specify --refresh, --clear, --arn, or --account and --role

To Reproduce:

  1. aws-sso-profile

Expected behavior: A list of available profiles returned

Screenshots:

Desktop (please complete the following information):

Additional context: I have no problem using aws-sso exec or config-profiles. I'm using zsh shell and enabled autocompletion.

Contents of ~/.aws-sso/config.yaml:

SSOConfig:
    Default:
        SSORegion: us-east-1
        StartUrl: xxx
        AuthUrlAction: open
DefaultSSO: Default
DefaultRegion: us-east-1
ConsoleDuration: 720
CacheRefresh: 168
Threads: 5
MaxBackoff: 5
MaxRetry: 10
UrlAction: open
ConfigProfilesUrlAction: open
LogLevel: error
HistoryLimit: 10
HistoryMinutes: 1440
ProfileFormat: "{{ FirstItem .AccountName (.AccountAlias | nospace) }}:{{ .RoleName }}"
AccountPrimaryTag:
    - AccountName
    - AccountAlias
    - Email
PromptColors:
    descriptionbgcolor: Turquoise
    descriptiontextcolor: Black
    inputbgcolor: DefaultColor
    inputtextcolor: DefaultColor
    prefixbackgroundcolor: DefaultColor
    prefixtextcolor: Blue
    previewsuggestionbgcolor: DefaultColor
    previewsuggestiontextcolor: Green
    scrollbarbgcolor: Cyan
    scrollbarthumbcolor: LightGrey
    selecteddescriptionbgcolor: DarkGray
    selecteddescriptiontextcolor: White
    selectedsuggestionbgcolor: DarkGray
    selectedsuggestiontextcolor: White
    suggestionbgcolor: Cyan
    suggestiontextcolor: White
ListFields:
    - AccountIdPad
    - AccountAlias
    - RoleName
    - Profile
    - Expires
FullTextSearch: true
synfinatic commented 1 month ago

Does tab completion not work for you?

derkrisz commented 1 month ago

Hey, thanks for your help! I'm using Warp, and it doesn't work - seems like it's not supported.

I checked tab completion in iterm and it works just fine 👌

synfinatic commented 1 month ago

Yeah, tab completion is currently available in bash, zsh, and fish. If warp support is something you'd like to see, a PR would be welcome :)