From c7bd05314534eb12cb3267b366368e308749f8b9 Mon Sep 17 00:00:00 2001 From: Bryan Shelton Date: Thu, 10 Jul 2025 17:48:30 +0000 Subject: [PATCH] Use --profile rather than AWS_PROFILE in eks get-token --- awscli/customizations/eks/update_kubeconfig.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/awscli/customizations/eks/update_kubeconfig.py b/awscli/customizations/eks/update_kubeconfig.py index 7a3781344ce7..16cb71f52d21 100644 --- a/awscli/customizations/eks/update_kubeconfig.py +++ b/awscli/customizations/eks/update_kubeconfig.py @@ -356,9 +356,9 @@ def get_user_entry(self, user_alias=None): ]) if self._session.profile: - generated_user["user"]["exec"]["env"] = [OrderedDict([ - ("name", "AWS_PROFILE"), - ("value", self._session.profile) - ])] + generated_user["user"]["exec"]["args"].extend([ + "--profile", + self._session.profile + ]) return generated_user