Skip to content

AWS cli suddenly so slow #9727

@sov-msaeed

Description

@sov-msaeed

Describe the bug

I am using AWS cli with AWS EKS to get token and recently (most probably after an upgrade) the kubectl get commands are absolutely slow and after investigation, turned out the issue is caused byaws eks get-token command in the kubeconfig.

but the issue actually seems to be with aws cli command itself, not getting the token. when I am trying even aws --version it takes almost 4 seconds to show the version. and when i run it with debug option, most of the wasted time is actually the time when no messages printed which i am wondering what is exactly happening in this time

this is my version, it's latest

aws --version
aws-cli/2.30.2 Python/3.13.7 Darwin/25.0.0 source/arm64

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

aws --version to return results in milisecs

Current Behavior

aws --version to return results in 3-4 seconds

Reproduction Steps

run aws --version

Possible Solution

No response

Additional Information/Context

No response

CLI version used

2.30.2

Environment details (OS name and version, etc.)

macOS Apple M3

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.closing-soonThis issue will automatically close in 4 days unless further comments are made.p3This is a minor priority issueresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions