[
https://issues.apache.org/jira/browse/AIRFLOW-5110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
João Ponte closed AIRFLOW-5110.
-------------------------------
Resolution: Not A Problem
> AwsGlueCatalogHook ignores region in the connection
> ---------------------------------------------------
>
> Key: AIRFLOW-5110
> URL: https://issues.apache.org/jira/browse/AIRFLOW-5110
> Project: Apache Airflow
> Issue Type: Bug
> Components: aws, hooks
> Affects Versions: 1.10.3
> Reporter: João Ponte
> Priority: Minor
>
> Problem:
> When initialising the boto client in the AwsGlueCatalogHook, the region
> contained in the connection passed in the constructor is ignored, being
> overwritten by the region_name passed also in in the constructor, which is
> None by default.
> [https://github.com/apache/airflow/blob/34c931944b91b051ee9437b1b54c932df51cd3c5/airflow/contrib/hooks/aws_glue_catalog_hook.py#L47]
>
> Solution:
> Since the aws_conn_id passed in the constructor is used to by the parent
> class AwsHook, one can simply call the get_session or get_credentials to get
> information regarding the region in the connection.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)