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 





When you ssh into that box, you will notice there's a public ip address appearing. 


 



Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20