π― Whatβs the goal? Assign your domain to your AWS Hosting account. | β οΈ Why does it matter? So your domain name redirects to the server hosting your website. |
π Whatβs the result? Your domain name points to your AWS account. | β When do you do this? Ideally as soon you put your website online, only once. |
β
Any special requirements? You need to have your own domain name (SOP005) and AWS Server. | πββοΈWho should do it? Owner of the website or the person in charge of managing it. |
π Where this is done: On godaddy.com and in Amazon Web Services Admin Console.
β³ How long will this take? about 15 minutes.
Letβs get started, in 15-min you will be able to access your website not using its IP address but with its unique domain name.
Environment setup:
- We recommend that you use Google Chrome browser to navigate the web.
- Access to your Amazon Web Services Admin Panel,
- Access to your GoDaddy account.
Creating a Hosted Zone for your AWS server
- Go to Amazon Web Services.
- Click on βSign in to the Consoleβ.
- Sign in to your account.
- Now you are on the βAWS Management Consoleβ.
- Click on βRoute 53β under βNetworking & Content Deliveryβ section.
- Click on βGet started nowβ under βDNS managementβ.
- Then choose βCreate Hosted Zoneβ.
- Click on βCreate Hosted Zoneβ in the new window that appeared.
- Start off with typing in your βDomain Nameβ.
You can add a βCommentβ if you want to
- Set βTypeβ to βPublic Hosted Zoneβ.
- Then click on βCreateβ.
- You will be presented with a list of βRecord setsβ you have just created. Click on βCreate Record Setβ as you have to create one more record.
- Put βwwwβ in the βNameβ box(1), set βTypeβ to βA – IPv4 addressβ(2). Set βTTLβ(3) to β300β. In the next step, we will show you where you will find your IP address to put into the βValueβ box(4).
Leave that tab open till the end of the proceedings
Getting your IP address from AWS
- Open another tab in your web browser.
- Go to Amazon Web Services.
- Click on βSign in to the Consoleβ.
- You should be automatically logged in to your account since it is opened in another tab.
- Click on βEC2β under βComputeβ section.
- Then choose βInstancesβ under βInstancesβ section.
- At the bottom of the page in the βDescriptionβ tab, you will find your βIPv4 Public IPβ. Copy it.
- Go back to the other tab of your web browser where you are adding a record and paste your IP address into the βValueβ box.
- When you fill all the required boxesβ¦
- …Click on βCreateβ.
- You have successfully added an βAβ type record.
- And there are your βNameserversβ (you can determine that by βNSβ Type). Write them down as you will have to put those βNameserversβ in your GoDaddy DNS settings.
Changing GoDaddy nameservers
- Go to GoDaddy.com and log in to your account.
- Click on βSign Inβ.
- Enter your account data and press on βSign Inβ or choose to sign in with βGoogleβ if you used it to create an account on GoDaddy.com.
- After you sign in you should see the domain that you bought. Click on βDNSβ to access DNS settings.
- Now you should see the βNameserversβ page. Click on βChangeβ.
- Then βEnter my own nameservers (advanced)β.
- Choose βIβll use my own nameserversβ.
- Now you should see two boxes called βNameserver 1β and βNameserver 2β.
- Now you need to enter βNameserversβ, you write down from your βHosted Zoneβ of AWS Account. Simply put first of them in the βNameserver 1β box and the second one in the βNameserver 2β box.
- If there is no box for the rest of βNameserversβ click on βAdd Nameserverβ and it will add another box.
- Click on βSaveβ after you add all βNameserversβ.
- Reload the page.
- Now try to go to your domain by typing it on the internet browser.
Youβre all set now and your audience can finally access your website using its own unique domain name. This is a major step in building your online brand.