Leondon9 opened a new pull request, #72033: URL: https://github.com/apache/airflow/pull/72033
Adds a `@task.eks_pod` TaskFlow decorator that runs a Python function in a pod on an Amazon EKS cluster. It wraps `EksPodOperator`, so the cluster kubeconfig and short-lived token come from the AWS connection (`aws_conn_id`) and the worker needs no `aws` CLI or kubeconfig. Today the TaskFlow route to EKS is `@task.kubernetes` with a connection whose kubeconfig carries an `aws eks get-token` exec plugin. That works, but the token is minted by an exec subprocess on the worker, so the worker must ship the AWS CLI and credentials. This decorator uses the operator's boto3/STS path instead, matching how `EksPodOperator` already authenticates. The script-injection logic is kept self-contained here rather than shared with the `@task.kubernetes` implementation in the cncf provider, to avoid a cross-provider private import. Factoring out a shared helper can be a follow-up. --- ##### Was generative AI tooling used to co-author this PR - [X] Yes — Claude Code (Opus 4.8) -- 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]
