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

IMG-20251206235908016.png

IMG-20251206235908319.png

Change Default to Custom DNS

IMG-20251206235908614.png

IMG-20251206235908987.png


3. AWS S3 bucket


Create AWS S3 bucket

IMG-20251206235909184.png

IMG-20251206235909308.png

IMG-20251206235909343.png
IMG-20251206235909386.png
IMG-20251206235909431.png


Setup Static Website hosting

IMG-20251206235909473.png
IMG-20251206235909515.png

IMG-20251206235909565.png
IMG-20251206235909645.png


Add bucket Policy

IMG-20251206235909712.png

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

IMG-20251206235909764.png
IMG-20251206235909856.png


Test your bucket

IMG-20251206235909931.png

IMG-20251206235910218.png

IMG-20251206235910254.png


4. Create SSL Certificate

IMG-20251206235910324.png

IMG-20251206235910358.png

IMG-20251206235910401.png

IMG-20251206235910435.png

IMG-20251206235910590.png

IMG-20251206235910633.png

5. Cloud Front Distribution

Create Cloud Front Distribution

  1. Go to AWS CloudFront - and press Create distribution
    IMG-20251206235910678.png

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

IMG-20251206235910716.png

IMG-20251206235910761.png

  1. Add your Domain name and Choose certificate

IMG-20251206235910804.png

  1. It will be like this

IMG-20251206235910854.png

IMG-20251206235910933.png

IMG-20251206235911013.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.

IMG-20251206235911110.png




Liked this post?



Get updates every time a new article is published (no spam and unsubscribe anytime):