Associating domain name with AWS instance

Post on 28-Jan-2018

154 views 0 download

Transcript of Associating domain name with AWS instance

Associating Domain Name with AWS Instance

Kamarul Kawnayeen

PrefaceIn this short tutorial, I’ll show how to associate a custom domain name with AWS instance. I’ve already setup a ubuntu server at AWS & install lamp stack there. I’ve also bought a domain at GoDaddy. If you are new to AWS, then please go through these presentation first :-

● Virtual Server on AWS● Installing Lamp Stack on Ubuntu Instance

1. Login to your aws console & go to EC2 Dashboard

2. Under “Network & Security” Tab, select Elastic IPS

Select “Allocate New Address”, then “Yes,Allocate”

Once the process is done, we have a new elastic ip which have no instance associated with it

Here is our only instance, which is setup before hand

Now back to Elastic Ip, select the ip created just before, select Actions -> Associate Address

Put your cursor on the instance field, you will get all the running instances to assign. Select the instance

you want to assign with this ip address

Once instance is associated, you can see the instance field of elastic id is filled up.

Now, login to your GoDaddy account & Select “Manage” Domains

Hit “Use My Domain”

Select “Connect to an Existing Site”

On the “Forward To Any Site” field, enter the elastic ip from aws, then hit “Next” & “Finish”

You will get the Success! messageOnce processing is done, select “Manage DNS”

Scroll down to “Forwarding” & hit edit

On SETTINGS, select “Forward with masking” & hit save

Our domain name successfully mapping to our aws instance!!!