Create a Amazon S3 bucket

Using the Amazon Console create a S3 bucket. Use your domain name (e.g. www.domain.tld) to name the bucket. Open the properties panel, switch to the Website tab, enable hosting of static web sites. Next go back to the permissions tab and click Edit bucket policy

Amazon bucket policy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  "Version": "2008-10-17",
  "Statement": [
      {
          "Sid": "PublicReadGetObject",
          "Effect": "Allow",
          "Principal": {
              "AWS": "*"
          },
          "Action": "s3:GetObject",
          "Resource": "arn:aws:s3:::www.domain.tld/*"
      }
  ]
}

Create a CNAME record with for your domain

The CNAME target is printed on the Amazon bucket properties panel, Website panel (bottom of panel).

CNAME
1
www.domain.tld CNAME www.domain.tld.s3-website-us-east-1.amazonaws.com

Comments