GoDaddy DNS to EC2


Once you have bought a domain name, you may want to start creating your website from scratch (with coding LAMP). Instead of transferring domain name to AWS Route 53 which costs, you can,

  1. Click your Profile Icon → My Products → All Products and Services → Domains → DNS (it may take a while around an hour to show up this button after purchase)
  2. Check your public ip address in AWS EC2.
  3. Change your DNS records.
  4. 
    Type: A
    Name: @
    Value: public ip
    TTL: 600 seconds
        
  5. Set up Apache2 config file and /var/www/html/website folder. Refresh it with a2ensite and systemctl.
  6. Create SSL certificate with certbot.

Now you have a starting website with https.

References