gcp creating cloud nat gateway for a cusom vpc and getting a public ip
While creating either vpc or cloud nat gateway is not really a thing, but it can be confusing when you trying to wonder where is the public ip associated with it?
It is allocated automatically. all you need to do is
- create custom vpc say mytest-vpc
- create cloud nat gateway
- then place vm instance in the subnet and you can see your public ip address appearing
This is my custom vpc network.
And then placing the VM in the subnet
Comments