VincentChantreau opened a new pull request, #38010: URL: https://github.com/apache/airflow/pull/38010
This PR aim to fix a bug in the GlueJobHook that occurs when setting the `verbose` parameter of GlueJobOperator to True. The `print_job_logs` method is instantiating a new boto3 client instead of using an AwsLogsHook. https://github.com/apache/airflow/blob/main/airflow/providers/amazon/aws/hooks/glue.py#L228 If the 'GlueJobOperator` is instantiated with an Airflow Connection with a `role_arn` different than the one used by the Airflow Workers, it result in a `AccessDeniedException` (because the boto3 client is using the default credentials) To fix this bug I've deleted the boto3 client instantiated in the `print_job_logs` method and instead, created a new `AwsLogsHook` using the `aws_conn_id` attribute. Close #37976 -- 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]
