You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/10/18 13:20:33 UTC

[GitHub] [airflow] btoh commented on issue #27078: Connection time out when doing sts_assume_role with AwsBaseHook

btoh commented on issue #27078:
URL: https://github.com/apache/airflow/issues/27078#issuecomment-1282376565

   Hi @o-nikolas, here is some sample code I'm using:
   `conn = Connection(conn_id='aws_test', conn_type='aws', extra = {'region_name':'eu-west-2', 'role_arn': 'arn:aws:xxxxxxx', 'assume_role_method': 'assume_role', 'host': 'elasticmapreduce.eu-west-2.amazonaws.com'})`
   
   I then commit this connection using `settings.Session().add(conn)` and then `settings.Session().commit()` to persist the connection in the Airflow connections database.
   
   When I try to use the connection in an operator, say the `EmrAddStepsOperator`, I get a timeout, because Airflow is trying to connect to `sts.amazonaws.com` instead


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org