[ 
https://issues.apache.org/jira/browse/AIRFLOW-2151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16378635#comment-16378635
 ] 

Ash Berlin-Taylor commented on AIRFLOW-2151:
--------------------------------------------

Do you have an example of how you'd like to use this?

We use the AWS hook to call AWS API calls like this:

{code}
    hook = AwsHook(aws_conn_id)
    emr_client = hook.get_client_type('emr')
{code}

Could you do something similar?

> Allow getting AWS Session from AwsHook
> --------------------------------------
>
>                 Key: AIRFLOW-2151
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2151
>             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
(v7.6.3#76005)

Reply via email to