✅ Website can now be accessed via: https://adityaindana.tech
-
Go to AWS EC2 Console → Launch Instance.
-
Choose Amazon Linux / Ubuntu.
-
Select t2.micro (Free Tier eligible).
-
Configure:
- Allow HTTP (80), HTTPS (443), and SSH (22) ports.
-
Launch & download the .pem key pair.
-
SSH into your EC2 instance:
ssh -i my-key.pem ec2-user@EC2-Public-IP- Install Web Server (for static website):
sudo yum update -y
sudo yum install httpd -y
sudo systemctl start httpd
sudo systemctl enable httpd- Upload your website files to /var/www/html/:
sudo rm -rf /var/www/html/*
sudo cp -r /home/ec2-user/mywebsite/* /var/www/html/- Go to EC2 > Elastic IPs.
- Allocate New Address.
- Associate it with your running EC2 instance.
- Use this Elastic IP as your public IP for the website.
-
Go to Route 53 → Registered Domains:
-
Purchase a new domain (e.g.,
adityaindana.tech) OR use an existing one from:get.techNamecheapName.comGoDaddy.com
-
-
After purchase:
- Go to Hosted Zones → Create Hosted Zone.
- Domain Name:
adityaindana.tech. - Type: Public Hosted Zone.
- It will auto-create 2 default records (NS & SOA).
-
Create a Record:
- Record Name: (leave blank for root domain OR use "www" / "maya" for subdomain)
- Type: A (IPv4 address)
- Value: Your Elastic IP (e.g.,
3.11.233.223) - Routing Policy: Simple.
- TTL: Default (300 sec).
- In Route 53 → Hosted Zone → Copy 4 NS (Name Servers):
ns-123.awsdns-45.net
ns-234.awsdns-67.com
ns-345.awsdns-89.org
ns-456.awsdns-10.co.uk
-
Go to your Domain Provider (e.g., get.tech, GoDaddy, Namecheap):
- Select your domain → Manage DNS.
- Replace their nameservers with the AWS provided ones.
-
Save & Verify (may take 5-10 mins).
-
Go to AWS Certificate Manager (ACM).
-
Request a Public Certificate:
- Domain Name:
adityaindana.techand/or*.adityaindana.tech(for subdomains).
- Domain Name:
-
Validation: Use DNS Validation (automatically create validation CNAME record via Route 53).
-
After validation is complete → SSL Certificate is issued.
-
Attach SSL in:
- CloudFront (for S3/static)
- OR Elastic Load Balancer (for EC2/Dynamic)
- OR Use Certbot on EC2 if no Load Balancer:
sudo amazon-linux-extras install epel -y
sudo yum install certbot python2-certbot-apache -y
sudo certbot --apache| Step | Status |
|---|---|
| EC2 Instance with Webserver | ✅ |
| Elastic IP Assigned | ✅ |
| Route 53 Domain Setup | ✅ |
| DNS NameServers Updated | ✅ |
| SSL Certificate (HTTPS) | ✅ (if ACM or Certbot configured) |

