I need to read and write to a google storage from my vm with no public IP. It has a disk with a custom image with everything I need: python etc.
I create an instance with a script like this one. In the config
dictionary you can see the section networkInterfaces
where I specify that I don't want a public IP for my machine.
I paste the section here with my configuration:
# Specify a network interface with NAT to access the public
# internet.
'networkInterfaces': [
{
"kind": "compute#networkInterface",
"subnetwork": "projects/PROJECT-NAME/regions/europe-west3/subnetworks/default",
"aliasIpRanges": []
}
],
The problem is that this setup doesn't even allow me to write neither read from google storage within the same project. Just fyi a ping www.google.com
does not work either.