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,
- 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)
- Check your public ip address in AWS EC2.
- Change your DNS records.
Type: A
Name: @
Value: public ip
TTL: 600 seconds
- Set up Apache2 config file and /var/www/html/website folder. Refresh it with a2ensite and systemctl.
- Create SSL certificate with certbot.
Now you have a starting website with https.
References