Credits to https://github.com/apache/airflow/discussions/26979#discussioncomment-13765204
The trick is to add environment variables with the env: attribute
env:
- name: AIRFLOW__LOGGING__REMOTE_LOGGING
value: "True"
- name: AIRFLOW__LOGGING__REMOTE_BASE_LOG_FOLDER
value: "s3://<bucket-name"
- name: AIRFLOW__LOGGING__REMOTE_LOG_CONN_ID
value: "minio"
- name: AIRFLOW_CONN_MINIO
value: |
{
"conn_type": "aws",
"login": <username>,
"password": <password>,
"extra": {
"region_name": <region>,
"endpoint_url": <endpoint_url>
}
}
The connection is still not detected in UI or CLI (in line with what @Akshay said in the comments), but logging works for sure!