-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Closed
Labels
affected_version:3.0Issues Reported for 3.0Issues Reported for 3.0area:loggingarea:providerskind:bugThis is a clearly a bugThis is a clearly a bugpriority:mediumBug that should be fixed before next release but would not block a releaseBug that should be fixed before next release but would not block a releasepriority:upgrade_to_airflow3provider:amazonAWS/Amazon - related issuesAWS/Amazon - related issues
Description
Apache Airflow Provider(s)
amazon
Versions of Apache Airflow Providers
No response
Apache Airflow version
3.0.2
Operating System
ebian GNU/Linux 12 (bookworm)
Deployment
Other Docker-based deployment
Deployment details
Airflow verison: 3.0.2
Provider version: 9.9.0
Executor: AWS Batch
Permissions: Handled by the IAM role attached to the EC2 instances in the compute environment.
What happened
The task running on AWS Batch is not writing any logs to Amazon CloudWatch. It completes successfully without leaving any specific error messages or logs.
Logs about amazon
[2025-06-27T04:55:46.050+0000] {base_aws.py:623} WARNING - Unable to find AWS Connection ID 'aws_default', switching to empty.
--
[2025-06-27T04:55:46.051+0000] {base_aws.py:189} INFO - No connection ID provided. Fallback on boto3 credential strategy (region_name='ap-northeast-2'). See: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html
--
{
"timestamp": "2025-06-27T04:56:20.255576",
"level": "info",
"event": "No connection ID provided. Fallback on boto3 credential strategy (region_name=None). See: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html",
"logger": "airflow.providers.amazon.aws.hooks.base_aws.BaseSessionFactory"
}
What you think should happen instead
No response
How to reproduce
We are using Apache Airflow with the AWSBatchExecutor to schedule and submit our worker tasks to AWS Batch.
AWS batch service role
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "*"
}Worker Configuration
AIRFLOW__LOGGING__REMOTE_LOGGING='true'
AIRFLOW__LOGGING__REMOTE_BASE_LOG_FOLDER="cloudwatch://${AWS_CLOUDWATCH_GROUP_ARN}"
AIRFLOW__LOGGING__REMOTE_LOG_CONN_ID='aws_default'Anything else
This configuration was working correctly in Airflow 2, but logging to CloudWatch stopped after we upgraded to Airflow 3.
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
affected_version:3.0Issues Reported for 3.0Issues Reported for 3.0area:loggingarea:providerskind:bugThis is a clearly a bugThis is a clearly a bugpriority:mediumBug that should be fixed before next release but would not block a releaseBug that should be fixed before next release but would not block a releasepriority:upgrade_to_airflow3provider:amazonAWS/Amazon - related issuesAWS/Amazon - related issues