First go to compute engine and create an instance
When created go to ssh and install nginx => sudo apt-get update
&& sudo apt-get install nginx
When done you can now access through the IP mentioned along your instance through http://35.xx.x.xx
Then we need to change the IP to a static one
Go to VPC Network and change ephimeral to the static IP option
THen Go to network services:
Create a A record with your IP 35.xx.x.xx
Create a CNAME with www
.domain-name.com and value in alias domain-name.com
Go to your domain provider in my case it was godaddy THere go to the dns section of your domain there add all the 4 DNS records that were already there
ns-cloud-xx1.googledomains.com
ns-cloud-xx2.googledomains.com
ns-cloud-xx3.googledomains.com
ns-cloud-xx4.googledomains.com
🚀 your domain is accessible now