Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_completer fails to complete sso profiles #8877

Closed
gagbo opened this issue Aug 21, 2024 · 2 comments
Closed

aws_completer fails to complete sso profiles #8877

gagbo opened this issue Aug 21, 2024 · 2 comments
Assignees
Labels
bug This issue is a bug. duplicate This issue is a duplicate.

Comments

@gagbo
Copy link

gagbo commented Aug 21, 2024

Describe the bug

I am using Fish shell on Mac:

$ aws --version
aws-cli/2.17.34 Python/3.11.9 Darwin/23.4.0 exe/x86_64

And I’ve only set up the CLI using the SSO provided sessions (so aws configure sso multiple times to setup all the accounts with profile names). When trying to complete the profile name after a --profile flag in an aws subcommand, I get an error message from aws_completer instead of having the list of profiles.

Expected Behavior

Expecting a list of all profiles to appear as completion candidates so I can choose them

Current Behavior

Unable to locate credentials. You can configure credentials by running "aws configure".

gets printed and there’s a new prompt with the same unchanged command

Reproduction Steps

  • Install aws cli
  • Set up a sso account only, using aws configure sso
  • check that s3 works aws s3 ls --profile ssoProfileName
  • try to complete aws s3 ls --profile <TAB here>

Possible Solution

Does aws_completer try to read the sso configurations in .aws/config?

Additional Information/Context

No response

CLI version used

aws-cli/2.17.34 Python/3.11.9 Darwin/23.4.0 exe/x86_64

Environment details (OS name and version, etc.)

MacOS M3 Pro, Sonoma 14.4

@gagbo gagbo added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 21, 2024
@tim-finnigan tim-finnigan self-assigned this Aug 23, 2024
@tim-finnigan tim-finnigan added the investigating This issue is being investigated and/or work is in progress to resolve the issue. label Aug 23, 2024
@tim-finnigan
Copy link
Contributor

Thanks for reaching out. This appears to be the same issue as #7739, and a tab completion issue not with SSO profiles but with commands that expect a positional argument. I will close this as a duplicate and we can continue tracking this in the other issue. Please let us know if you had any additional context to share related to this.

@tim-finnigan tim-finnigan closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2024
@tim-finnigan tim-finnigan added duplicate This issue is a duplicate. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. needs-triage This issue or PR still needs to be triaged. labels Aug 23, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. duplicate This issue is a duplicate.
Projects
None yet
Development

No branches or pull requests

2 participants