Hosting a static website with S3 and CloudFront

The Simple Storage Service (S3) is a great option to host a static website because it gives us the following benefits:

  • Hosts every file with a 99.999999999% durability [DONE]
  • High availability with an SLA of 99.99%
  • Low cost for usage calculated for every 1,000 requests, plus storage, and data transfer fees

Our first step is to provision a bucket where we will be hosting our website; for DNS resolution, our bucket name must have the same name as the domain name; for this purpose, I have registered the domain s3websitehosting using Route 53.

Latency is an important aspect, so we need to choose a region closer to our end users so we can measure response times for HTTP endpoints using cloudping.info ...

Get AWS Certified Solutions Architect - Associate Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.