0

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

1 Answers1

0

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.

Johannes Passing
  • 2,715
  • 16
  • 13