eladkal edited a comment on issue #13691:
URL: https://github.com/apache/airflow/issues/13691#issuecomment-768047415


   @tandelDipak So you are using 
[EC2StartInstanceOperator](https://github.com/apache/airflow/blob/7f4c88c0680b4fb98fe8b31800a93e1d0476c4db/airflow/providers/amazon/aws/operators/ec2_start_instance.py#L27),
 
[EC2StopInstanceOperator](https://github.com/apache/airflow/blob/7f4c88c0680b4fb98fe8b31800a93e1d0476c4db/airflow/providers/amazon/aws/operators/ec2_stop_instance.py#L27)
 to interact with the machine.
   And you are missing a way to get the machine host?
   
   So your request is to add a method to `EC2Hook` will return the machine host?
   Something like 
https://stackoverflow.com/questions/34728477/retrieving-public-dns-of-ec2-instance-with-boto3
 
   
https://maskaravivek.medium.com/how-to-ssh-into-an-ec2-instance-using-boto3-a138a4345a91
   ?
   
   From what I can tell the `public_ip_address` is part of the Instance so 
`get_instance` already provides this.


----------------------------------------------------------------
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:
[email protected]


Reply via email to