Vamsi-klu commented on PR #61935: URL: https://github.com/apache/airflow/pull/61935#issuecomment-3939936544
Hi @jscheffl @o-nikolas @Vamsi-klu, I've implemented **Option 1** (move fix entirely into the AWS provider) as discussed in the review thread: ### Changes - **`EksHook` (`providers/amazon/.../hooks/eks.py`)**: Added `_ensure_aws_cli_cache_dir()` which calls `os.makedirs(~/.aws/cli/cache, exist_ok=True)` — invoked at the top of `generate_config_file()` before any kubeconfig assembly or exec-based auth runs. - **Tests (`test_eks.py`)**: 3 new tests covering directory creation, idempotency, and integration with `generate_config_file()`. - **No changes to the Kubernetes provider** — it stays completely cloud-agnostic. ### Trade-off Users who use a plain `KubernetesHook` with an EKS kubeconfig (without going through `EksHook`) won't get this protection. They'd need to either use `EksHook` or upgrade to `botocore >= 1.40.2`. Would love your feedback on this approach. Thanks! -- 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]
