aws / aws/aws-cli

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

Open
#7,373 12 comments 8 reactions 0 assignees View on GitHub
bug configure documentation p2
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### Describe the bug

The [documentation](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/configure/list-profiles.html) 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.