1. AWS S3 - Static Website

1. Registry web-domain.

I propose to use next services: aws.amazon.com (Route 53), Namecheap or GoDaddy.


2. Connect your web-domain

Create Hosted zone on Route 53

Pasted image 20250215143850.png

Pasted image 20250215144058.png

Change Default to Custom DNS

Pasted image 20250215144818.png

Pasted image 20250215145017.png


3. AWS S3 bucket


Create AWS S3 bucket

Pasted image 20250215150147.png

Pasted image 20250215145739.png

Pasted image 20250215150334.png
Pasted image 20250215150519.png
Pasted image 20250215150639.png


Setup Static Website hosting

Pasted image 20250215151218.png
Pasted image 20250215151257.png

Pasted image 20250215151509.png
Pasted image 20250215151610.png


Add bucket Policy

Pasted image 20250215152355.png

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "AddPerm",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::YOUR_BUCKET_NAME/*"
        }
    ]
}

Pasted image 20250215152536.png
Pasted image 20250215152556.png


Test your bucket

Pasted image 20250215154354.png

Pasted image 20250215162619.png

Pasted image 20250215162652.png


4. Create SSL Certificate

Pasted image 20250215155646.png

Pasted image 20250215155750.png

Pasted image 20250215155929.png

Pasted image 20250215160230.png

Pasted image 20250215160709.png

Pasted image 20250215160929.png

5. Cloud Front Distribution

Create Cloud Front Distribution

  1. Go to AWS CloudFront - and press Create distribution
    Pasted image 20250215161739.png

  2. Origin domain - choose your s3 bucket and click "Use website endpoint".

Pasted image 20250215165305.png

Pasted image 20250215163833.png

  1. Add your Domain name and Choose certificate

Pasted image 20250215163359.png

  1. It will be like this

Pasted image 20250215163541.png

Pasted image 20250215163737.png

Pasted image 20250215164005.png

6. Connect CloudFront to Route 53

Set up the necessary DNS entries, either directly to the CloudFront distribution in Route 53 or as a CNAME in whatever DNS provider is hosting the zone for your domain.

Pasted image 20250215164456.png