seanghaeli commented on code in PR #74399:
URL: https://github.com/apache/airflow/pull/74399#discussion_r4212142924


##########
providers/amazon/src/airflow/providers/amazon/aws/utils/eks_get_token.py:
##########
@@ -49,9 +49,12 @@ def get_parser():
     return parser
 
 
-def fetch_access_token_for_cluster(eks_cluster_name: str, sts_url: str, 
region_name: str) -> str:
-    # This will use the credentials from the caller set as the standard AWS 
env variables
-    session = boto3.Session(region_name=region_name)
+def fetch_access_token_for_cluster(
+    eks_cluster_name: str, sts_url: str, region_name: str, session: 
boto3.Session | None = None

Review Comment:
   Sounds good, I will bring the upcoming PR I was planning into this one!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to