Diagram 1 of 12

Static HTML site on AWS

Route 53 resolves the domain, CloudFront serves the site over HTTPS, and S3 stores the files in a private bucket that only CloudFront can read through OAC.

Route 53CloudFrontCertificate Manager (ACM)S3Origin Access Control (OAC)AWS CLI

Diagram

Diagram 1: static HTML site (Route 53 + CloudFront + S3)AWS CloudUsersR53Amazon Route 53DNSCFAmazon CloudFrontCDN + HTTPSACMAWS CertificateManagerS3Amazon S3(private bucket)CLIDeveloper(AWS CLI)123OAC41. The user enters the domain; Route 53 resolves the DNS record.2. CloudFront serves the site over HTTPS with an AWS Certificate Manager certificate.3. CloudFront fetches HTML, CSS and JS from the private S3 bucket through OAC.4. The developer uploads the files with AWS CLI (aws s3 sync).

Comments

Information flow

  1. Amazon Route 53

    The user enters the domain; Route 53 resolves the DNS record, typically an alias pointing to CloudFront.

  2. Amazon CloudFront

    CloudFront serves the site over HTTPS using the ACM certificate.

  3. Amazon S3 + OAC

    On a cache miss, CloudFront fetches HTML, CSS and JS from the private bucket through OAC.

  4. AWS CLI (publishing)

    The developer uploads the built files with aws s3 sync; this is the publishing step.