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

eks list-clusters command return always one-line #8564

Closed
Hokwang opened this issue Mar 8, 2024 · 2 comments
Closed

eks list-clusters command return always one-line #8564

Hokwang opened this issue Mar 8, 2024 · 2 comments
Assignees
Labels
bug This issue is a bug. closed-for-staleness eks p3 This is a minor priority issue response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@Hokwang
Copy link

Hokwang commented Mar 8, 2024

Describe the bug

Hi,

aws eks list-clusters --query 'clusters' commands return

[
    "central-dev-eks",
    "ssm-dev-eks"
]

but aws eks list-clusters --query '[clusters]' --output text return

central-dev-eks ssm-dev-eks

I think this should return with newline like,

central-dev-eks
ssm-dev-eks

Thanks,

Expected Behavior

central-dev-eks
ssm-dev-eks

Current Behavior

central-dev-eks ssm-dev-eks

Reproduction Steps

wrote above

Possible Solution

No response

Additional Information/Context

No response

CLI version used

aws-cli/2.15.26 Python/3.11.8 Darwin/23.3.0 source/x86_64 prompt/off

Environment details (OS name and version, etc.)

aws-cli/2.15.26 Python/3.11.8 Darwin/23.3.0 source/x86_64 prompt/off

@Hokwang Hokwang added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 8, 2024
@RyanFitzSimmonsAK RyanFitzSimmonsAK self-assigned this Apr 18, 2024
@RyanFitzSimmonsAK RyanFitzSimmonsAK added investigating This issue is being investigated and/or work is in progress to resolve the issue. eks p3 This is a minor priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Apr 18, 2024
@RyanFitzSimmonsAK
Copy link
Contributor

Hi @Hokwang, thanks for reaching out. The right syntax to get this operation to display correctly is aws eks list-clusters --query "clusters[*]". This should print your clusters, as text, one cluster to a line. You might find the client-side filtering documentation useful. Hope that helps!

@RyanFitzSimmonsAK RyanFitzSimmonsAK added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Apr 18, 2024
Copy link

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Apr 28, 2024
@github-actions github-actions bot closed this as completed May 2, 2024
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. closed-for-staleness eks p3 This is a minor priority issue response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants