Add support for SSH over IAP using the Google Cloud IAP for TCP forwarding feature.
The gcloud ssh
command automatically uses this as a fallback when trying to ssh into an instance without an external IP.
This will let you use the SSH communicator on instances that do not have an external IP address.
Using the IAP proxy with GCP is generally more secure given that you no longer need to have a public IP address and firewall rules to grant packer access to the instance.
Similar to #8242
This would be very useful indeed ! Trying to run packer
from Google Cloud Build on a network that doesn't accept any external ip (org policy restriction).
@ocervell you could run packer from another instance within the same network.
Yes, but our goal is to integrate Packer build with a Cloud Build pipeline that builds other infrastructure with Terraform.
@rickard-von-essen do you have any update on this? Our company disallowed the usage of public IP at the organization policies.
I'm not working on this.
But if the only problem is that you can't have a public IP use a instance in the same network to run Packer from.
I'm in the process of implementing this. I've tested it from an OSX machine, but haven't tried for windows. Currently it's only enabled for SSH. I'd appreciate some testing and feedback; binaries can be found at https://circleci.com/gh/hashicorp/packer/47476#artifacts/containers/0
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
I'm in the process of implementing this. I've tested it from an OSX machine, but haven't tried for windows. Currently it's only enabled for SSH. I'd appreciate some testing and feedback; binaries can be found at https://circleci.com/gh/hashicorp/packer/47476#artifacts/containers/0