-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retrieve AWS Cloudwatch logs using aws_conn_id connection for GlueOperator #26511
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
@ChirangaL, I've made some suggestion to current existed PR: #26269 (comment) |
Hi @Taragolis You are correct. The updates in mentioned PR will resolve our issue. But given the below proposed update is performed. |
I linked the issue to the PR. |
The PR has been updated, the access key and secret are now fetched from the hook credentials. @ChirangaL please have a look at the current state of the PR to see if it should suffice for your usecase? |
@o-nikolas - given there is no response for more than a month, can we close this issue for now? |
Agreed, I will close the issue |
Apache Airflow version
2.4.0
What happened
We are using cross account AWS connection to invoke a Glue job using GlueOperator. When the verbose flag is set we expected the cloudwatch logs to be retrieved from the AWS account where glue job was executed and displayed in Airflow logs.
We constantly receive below error on Airflow logs rather than getting cloudwatch logs
Underlying issue
Below code suggest that it creates a new connection to retrieve logs on same account as the invoker of glue job.
airflow/glue.py at cc4f245758340f5fc278bbbdc958a40b85f39bb8 · apache/airflow
But as we are executing the glue job from a different account; the code needs updates to share the same connection in retrieving the logs.
What you think should happen instead
When AWS GlueOperator is called with a aws_conn_id parameter and verbose flag we expect
Proposed Solution
airflow/airflow/providers/amazon/aws/hooks/glue.py
Line 155 in cc4f245
airflow/airflow/providers/amazon/aws/hooks/base_aws.py
Line 438 in 4bf0cb9
airflow/airflow/providers/amazon/aws/hooks/glue.py
Line 165 in 4bf0cb9
How to reproduce
Operating System
Mac 12.6
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: