aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

aws configure list-profiles doesn't respect the --output option

Open jim-docker opened this issue 3 years ago • 11 comments

Describe the bug

The documentation indicates that --output is supported but it seems to be ignored.

Expected Behavior

Something like for aws eks list-clusters:

$ aws configure list-profiles --output json
{
    "profiles": [
        "profile1",
        "profile2"
    ]
}

Current Behavior

$ aws configure list-profiles --output json
profile1
profile2

Reproduction Steps

see current behaviour. Other output formats seem to be ignored as well. Also, for other commands, like list.

Possible Solution

If it's intentional then fix docs?

Additional Information/Context

No response

CLI version used

aws-cli/2.7.35 Python/3.9.11 Darwin/20.6.0 exe/x86_64 prompt/off

Environment details (OS name and version, etc.)

macos Big Sur 11.6.7

jim-docker avatar Oct 26 '22 22:10 jim-docker

Hi @jim-docker, thanks for raising this issue. I can confirm that I was able to reproduce the same behavior and will investigate further with the team.

aBurmeseDev avatar Oct 27 '22 06:10 aBurmeseDev

Hi @jim-docker - after reviewing it with the team, I created a corresponding backlog item for the team to further investigate and implement the fix. Since this isn't a business critical, we can't provide the timeline or guarantee when the fix would be implemented. I'm going to keep this issue open for tracking. Again, we appreciate your time and thank you for bringing this to our attention.

aBurmeseDev avatar Nov 15 '22 23:11 aBurmeseDev

Still present in aws-cli/2.11.16 Python/3.11.3 Linux/5.19.0-45-generic exe/x86_64.ubuntu.22 prompt/off, just an FYI.

ndlarsen avatar Jun 29 '23 12:06 ndlarsen

Any updates? How can user fetch information for automated tests?

OnkelTem avatar Aug 02 '23 12:08 OnkelTem

Any updates here?

ShahNewazKhan avatar Feb 03 '24 01:02 ShahNewazKhan

Seems like a simple fix. Can we have, please?

TrentBrown avatar Feb 13 '24 20:02 TrentBrown

Upvoting.

NBardelot avatar Mar 01 '24 10:03 NBardelot

how can this still be open? image

hanseartic avatar May 31 '24 10:05 hanseartic