We are trying to run Packer from within GCP VPC.
We have disabled external IP addresses for all instances for security reasons.
To have access to Google APIs, we set up Private Google Access and verified it's working by the following:
$ traceroute -T -p 443 www.googleapis.com
traceroute to www.googleapis.com (199.36.153.4), 30 hops max, 44 byte packets
1 gateway (172.17.0.1) 0.081 ms 0.017 ms 0.016 ms
2 199.36.153.4 (199.36.153.4) 3.949 ms 3.942 ms 4.992 ms
Now within the instance, when we run we cannot access google cloud images using google api, it fails with:
<p><b>404.</b> <ins>That’s an error.</ins>
<p>The requested URL <code>/batch/compute/v1</code> was not found on this server.
<ins>That’s all we know.</ins>
Does that mean our setup is wrong in some way? Can anyone tell me the correct way to verify if Private Access is working?