Reputation: 11
i am trying to connect to a VM through a IAP tunnel, and i need to first open the tunnel I am able to do it with gcloud CLI, however i would like to do it through a python script, possibly without having to resort to run bash command with the subprocess library
Does anybody know if there is a python library that allows me to open a IAP tunnel?
Thanks
Upvotes: 1
Views: 758
Reputation: 2805
The Google Cloud client libraries currently don't provide support for IAP TCP tunneling. IAP Desktop includes an OSS implementation for IAP TCP tunneling, but it's C#.
So running gcloud
might be your best bet.
Upvotes: 0