Diagram 2 of 12

Layered security for a static site

The same static site as diagram 1, with protection layers: AWS WAF inspects every HTTP request, AWS Shield mitigates DDoS attacks, OAC keeps the bucket private, and AWS KMS encrypts the objects stored in S3.

Route 53CloudFrontAWS WAFAWS ShieldS3 with OACAWS KMS

Diagram

Diagram 2: layered security for a static site (WAF, Shield, OAC, KMS)AWS CloudUsersR53Amazon Route 53DNSCFAmazon CloudFront+ AWS ShieldWAFAWS WAFrules and botsS3Amazon S3(private, OAC)KMSAWS KMS(encryption)12341. The user resolves the domain with Amazon Route 53, which points to CloudFront.2. AWS WAF inspects each request (OWASP, bots, rate limits); AWS Shield mitigates DDoS.3. CloudFront gets the content from S3 through OAC; the bucket is not public.4. The objects in the bucket are encrypted with AWS KMS.

Comments

Information flow

  1. Amazon Route 53

    The user resolves the domain; Route 53 answers with an alias to CloudFront.

  2. AWS WAF and AWS Shield

    Before serving the request, WAF evaluates managed rules (OWASP), bot control and rate limits. Shield absorbs volumetric DDoS traffic.

  3. Amazon CloudFront + OAC

    If the request passes the filters, CloudFront serves it from cache or fetches the object from S3 through OAC.

  4. Amazon S3 + AWS KMS

    The bucket is private. Objects are encrypted with a KMS key, which S3 uses when storing and serving them.