airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pieter Mulder (JIRA)" <>
Subject [jira] [Commented] (AIRFLOW-2151) Allow getting AWS Session from AwsHook
Date Tue, 27 Feb 2018 14:36:00 GMT


Pieter Mulder commented on AIRFLOW-2151:

To be clear, do you think we should add a public `get_credentials()` or a public `get_session()`.
For my case either would work, and I'm happy to create a PR.

> Allow getting AWS Session from AwsHook
> --------------------------------------
>                 Key: AIRFLOW-2151
>                 URL:
>             Project: Apache Airflow
>          Issue Type: New Feature
>          Components: aws, contrib
>            Reporter: Pieter Mulder
>            Assignee: Pieter Mulder
>            Priority: Major
> I would like to be able to get the `session` object that `AwsHook` creates.
> In my case I want to use it's credentials (I now use `_get_credentials()` in my code,
but don't like using the private function) to do a `COPY` with Redshift.
> I think the AWS Session could also be useful for people that want to use a client or
resource with other arguments then the default.

This message was sent by Atlassian JIRA

View raw message