Associating domain name with AWS instance

17
Associating Domain Name with AWS Instance Kamarul Kawnayeen

Transcript of Associating domain name with AWS instance

Page 1: Associating domain name with AWS instance

Associating Domain Name with AWS Instance

Kamarul Kawnayeen

Page 2: Associating domain name with AWS instance

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

Page 3: Associating domain name with AWS instance

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

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

Page 4: Associating domain name with AWS instance

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

Page 5: Associating domain name with AWS instance

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

Page 6: Associating domain name with AWS instance

Here is our only instance, which is setup before hand

Page 7: Associating domain name with AWS instance

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

Page 8: Associating domain name with AWS instance

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

Page 9: Associating domain name with AWS instance

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

Page 10: Associating domain name with AWS instance

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

Page 11: Associating domain name with AWS instance

Hit “Use My Domain”

Page 12: Associating domain name with AWS instance

Select “Connect to an Existing Site”

Page 13: Associating domain name with AWS instance

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

Page 14: Associating domain name with AWS instance

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

Page 15: Associating domain name with AWS instance

Scroll down to “Forwarding” & hit edit

Page 16: Associating domain name with AWS instance

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

Page 17: Associating domain name with AWS instance

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