You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "badf007 (via GitHub)" <gi...@apache.org> on 2025/12/29 17:04:21 UTC
Re: [I] PythonVirtualenvOperator fails to access Variables/Connections via Task SDK in Airflow 3.1.3 on Kubernetes [airflow]
badf007 commented on issue #58724:
URL: https://github.com/apache/airflow/issues/58724#issuecomment-3697048924
I have a similar issue.
Airflow version: 3.1.0
Installed using Helm Chart and Rancher
My connections were created using the airflow UI, but when trying to use them inside the PythonVirtualenvOperator I get something like this:
`[2025-12-28 01:01:24] INFO - 2025-12-28T05:01:24.326475Z [warning ] Unable to find AWS Connection ID 'aws', switching to empty. [airflow.task.hooks.airflow.providers.amazon.aws.hooks.s3.S3Hook] loc=base_aws.py:624 source=airflow.utils.process_utils loc=process_utils.py:196
[2025-12-28 01:01:24] INFO - 2025-12-28T05:01:24.327250Z [info ] No connection ID provided. Fallback on boto3 credential strategy`
This is the way im trying to create the hook in the task: **s3_hook = S3Hook(aws_conn_id="aws")**
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org