Connect my Google Domain with my EC2

 Getting start on my AWS journey!


First, get your own AWS account, and create an admin user from your root user, also it's a good practice to setup budget alerts.

Second, create an EC2 instance, since it's just for my learning, using the Amazon linux freetier is good enough.

Third, install nginx and run it in EC2, just to keep it simple so we can just use localhost:80 to see if we are hitting nginx welcome page.

Fourth, config the security group to allow all inbound traffic so we can hit EC2 from outside world.

Fifth, set up a elastic IP for the EC2, and we can use it in the route53 later. Up to this point, we can use the elastic ip to hit the nginx welcome page in browser.

Sixth, create hosted zone in Route 53 with the google domain, then copy all values under NS to custom domain server under google domain DNS. After that we can add another record in the hosted zone to point "test.xxx.xxx" to the elastic ip.

 Now, we can type http://test.xxx.xxx/ and get to the nginx welcome page.

Comments