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 2021/01/18 08:01:45 UTC

[GitHub] [airflow] tandelDipak commented on issue #13691: Update Connection Hook after starting EC2 instance

tandelDipak commented on issue #13691:
URL: https://github.com/apache/airflow/issues/13691#issuecomment-762061432


   @feluelle @eladkal  thank you for your efforts. Let me explain the use case in detail.
   Let's say I want to run some task or simple ls command on ec2 instance. I don't keep my ec2 instance always on, I turn it on when needed. So, to run a bash script or some other command first I have to start the instance. Then I have to ssh into the ec2 instance and pass the command as an argument in SSH Operator. After the work is done. I will shut down the ec2 machine.  Now SSH Operator uses connection hook, which takes hostname parameter. (To ssh into the system I need the hostname of the ec2 instance). For AWS ec2 instance hostname is derived dynamically when I start the instance.  So the connection hook has to be updated with the new hostname before using it in SSH Operator. I hope it's bit clear now. 
   
   Let me know if you need more details.  I appreciate your support.


----------------------------------------------------------------
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.

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